2021-03-25 13:45:24 +00:00
|
|
|
networks:
|
|
|
|
default:
|
2024-04-28 11:25:43 +00:00
|
|
|
name: traefik_default
|
|
|
|
external: true
|
2021-03-25 13:45:24 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
wordpress:
|
|
|
|
env_file: live.env
|
2024-02-24 13:31:47 +00:00
|
|
|
image: wordpress:6.4.3
|
2021-03-25 13:45:24 +00:00
|
|
|
container_name: wordpress-app
|
|
|
|
restart: unless-stopped
|
|
|
|
labels:
|
|
|
|
# Watchtower
|
|
|
|
- "com.centurylinklabs.watchtower.enable=true"
|
|
|
|
- "traefik.enable=true"
|
|
|
|
### <https> ###
|
|
|
|
- "traefik.http.routers.wordpress.entrypoints=websecure"
|
|
|
|
#- "traefik.http.routers.wordpress.middlewares=hsts-header@file"
|
|
|
|
- "traefik.http.routers.wordpress.rule=Host(`${DOMAIN}`)"
|
|
|
|
- "traefik.http.routers.wordpress.tls=true"
|
|
|
|
- "traefik.http.routers.wordpress.tls.certresolver=myresolver"
|
|
|
|
#- "traefik.http.routers.wordpress.tls.options=intermediate@file"
|
|
|
|
### </https> ###
|
2021-07-14 20:22:04 +00:00
|
|
|
# multi wordpress instances useage
|
|
|
|
links:
|
|
|
|
- db:db_s1
|
2021-03-25 13:45:24 +00:00
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
volumes:
|
|
|
|
- ${WORDPRESS_ROOT}/data/wordpress/usr/local/etc/php/conf.d/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
|
|
|
|
- ${WORDPRESS_ROOT}/data/wordpress/var/www/html:/var/www/html
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
|
|
|
|
db:
|
|
|
|
env_file: live.env
|
2024-02-24 13:31:47 +00:00
|
|
|
image: mariadb:10.11
|
2021-03-25 13:45:24 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
container_name: wordpress-db
|
|
|
|
labels:
|
|
|
|
# Watchtower
|
|
|
|
- "com.centurylinklabs.watchtower.enable=true"
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
volumes:
|
|
|
|
- ${WORDPRESS_ROOT}/db/var/lib/mysql:/var/lib/mysql
|
|
|
|
|