2021-05-09 22:07:17 +02:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: mysql:5.7
|
|
|
|
# env_file: secrets/db.secrets
|
|
|
|
volumes:
|
|
|
|
- ${DATA_PATH}/db_data:/var/lib/mysql
|
|
|
|
restart: "no"
|
|
|
|
|
|
|
|
app:
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
image: wordpress:5.6.2
|
|
|
|
env_file: secrets/app.secrets
|
|
|
|
volumes:
|
|
|
|
- ${DATA_PATH}/_data:/var/www/html
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
- default
|
|
|
|
expose:
|
|
|
|
- "80"
|
|
|
|
restart: "no"
|
|
|
|
environment:
|
|
|
|
WORDPRESS_DB_HOST: db:3306
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.docker.network=proxy"
|
2023-02-06 12:32:05 +01:00
|
|
|
- "traefik.http.routers.wp-valpo.entrypoints=websecure"
|
2023-02-01 18:43:13 +01:00
|
|
|
- "traefik.http.routers.wp-valpo.rule=Host(`${CN}`)"
|
2021-05-09 22:07:17 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
external: true
|