Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wordpress
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libre.sh
compose
Wordpress
Commits
fcee84f3
Commit
fcee84f3
authored
2 years ago
by
Michel Memeteau
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/develop'
parents
26fde656
64764061
No related branches found
Branches containing commit
Tags
5
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+3
-1
3 additions, 1 deletion
README.md
docker-compose.yml
+3
-1
3 additions, 1 deletion
docker-compose.yml
scripts/install
+2
-2
2 additions, 2 deletions
scripts/install
with
8 additions
and
4 deletions
README.md
+
3
−
1
View file @
fcee84f3
...
...
@@ -7,7 +7,7 @@ Install libre.sh
Install a proxy module on libre.sh like Haproxy
```
libre provision -a
lab.libreho.st/libre.sh/compose/
wordpress -u yourdomain.com -s
libre provision -a wordpress -u yourdomain.com -s
```
You can now access yourdomain.com.
...
...
@@ -17,6 +17,8 @@ You can now access yourdomain.com.
Once started, you'll arrive at the configuration wizzard.
Sending email is supported using the variables from libre.sh on the system
## Backup
In order to backup, just run the
`./BACKUP`
script. And copy all the data to a safe place.
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
3
−
1
View file @
fcee84f3
...
...
@@ -15,16 +15,18 @@ services:
-
./db/mysql/runtime:/var/lib/mysql
environment
:
-
MYSQL_ROOT_PASSWORD
-
MYSQL_DATABASE=wordpress
networks
:
-
back
app
:
image
:
wordpress:${WORDPRESS_VERSION:-latest}
image
:
libresh/
wordpress:${WORDPRESS_VERSION:-latest}
links
:
-
db:mysql
volumes
:
-
./data/wp-content:/var/www/html/wp-content
environment
:
-
WORDPRESS_DB_PASSWORD
-
WORDPRESS_DB_USER=root
-
MAIL_PASS
-
MAIL_USER
-
MAIL_HOST
...
...
This diff is collapsed.
Click to expand it.
scripts/install
+
2
−
2
View file @
fcee84f3
...
...
@@ -3,7 +3,7 @@
source
/etc/environment
WORDPRESS_VERSION
=
5-fpm
WORDPRESS_VERSION
=
5
.8
-fpm
MYSQL_ROOT_PASSWORD
=
`
tr
-dc
A-Za-z0-9_ < /dev/urandom |
head
-c
20 | xargs
`
var
=
$(
for
folder
in
`
ls
/data/domains
`
;
do
cat
/data/domains/
$folder
/.env |
grep
SUBNET |
cut
-d
"="
-f2
;
done
|
sort
|
tail
-n1
)
...
...
@@ -15,7 +15,7 @@ echo "MAIL_PASS=${MAIL_PASS}" >> .env
echo
"MAIL_USER=
${
MAIL_USER
}
"
>>
.env
echo
"MAIL_HOST=
${
MAIL_HOST
}
"
>>
.env
echo
"MAIL_PORT=
${
MAIL_PORT
}
"
>>
.env
echo
"MAIL_SECURITY=
tls
"
>>
.env
echo
"MAIL_SECURITY=
${
MAIL_SECURITY
}
"
>>
.env
echo
"SUBNET=
${
SUBNET
}
"
>>
.env
echo
"WORDPRESS_VERSION=
${
WORDPRESS_VERSION
}
"
>>
.env
echo
"MYSQL_VERSION=5.7"
>>
.env
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment