-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
123 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
services: | ||
|
||
wordpress-app: | ||
image: tiredofit/wordpress:latest | ||
container_name: wordpress-app | ||
labels: | ||
- traefik.enable=true | ||
- traefik.http.routers.wordpress.rule=Host(`wordpress.example.com`) | ||
- traefik.http.services.wordpress.loadbalancer.server.port=80 | ||
volumes: | ||
- ./data/:/www/wordpress | ||
- ./logs/:/www/logs | ||
environment: | ||
- TIMEZONE=America/Vancouver | ||
- CONTAINER_NAME=wordpress-app | ||
|
||
- DB_HOST=wordpress-db | ||
- DB_NAME=wordpress | ||
- DB_USER=wordpress | ||
- DB_PASS=userpassword | ||
|
||
- ENABLE_HTTPS_REVERSE_PROXY=FALSE | ||
|
||
- ADMIN_EMAIL=email@example.com | ||
- ADMIN_USER=admin | ||
- ADMIN_PASS=password | ||
- DEBUG_MODE=FALSE | ||
### Enter this in as hostname.domain.tld or localhost if you are doing local development | ||
- SITE_URL=localhost | ||
- SITE_TITLE=Docker Wordpress | ||
### This is next line is optional and only really used for local development - you would need to expose this port on your system to route to port 80 | ||
### If you are running a production system, get rid of thise environment variable entirely. | ||
#- SITE_PORT=8000 | ||
networks: | ||
- proxy | ||
- services | ||
restart: always | ||
|
||
wordpress-db: | ||
image: tiredofit/mariadb | ||
container_name: wordpress-db | ||
volumes: | ||
- ./db:/var/lib/mysql | ||
environment: | ||
- TIMEZONE=America/Vancouver | ||
- CONTAINER_NAME=wordpress-db | ||
|
||
- ROOT_PASS=password | ||
|
||
- DB_NAME=wordpress | ||
- DB_USER=wordpress | ||
- DB_PASS=userpassword | ||
networks: | ||
- services | ||
restart: always | ||
|
||
wordpress-db-backup: | ||
container_name: wordpress-db-backup | ||
image: tiredofit/db-backup | ||
links: | ||
- wordpress-db | ||
volumes: | ||
- ./dbbackup:/backup | ||
environment: | ||
- TIMEZONE=America/Vancouver | ||
- CONTAINER_NAME=wordpress-db-backup | ||
|
||
- DB_HOST=wordpress-db | ||
- DB_TYPE=mariadb | ||
- DB_NAME=wordpress | ||
- DB_USER=wordpress | ||
- DB_PASS=userpassword | ||
- DB_DUMP_FREQ=1440 | ||
- DB_DUMP_BEGIN=0000 | ||
- DB_CLEANUP_TIME=8640 | ||
networks: | ||
- services | ||
restart: always | ||
|
||
networks: | ||
proxy: | ||
external: true | ||
services: | ||
external: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters