docker/wordpress-valpo/docker-compose.yml

35 lines
690 B
YAML
Raw Permalink Normal View History

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"
- "traefik.http.routers.wp-valpo.entrypoints=websecure"
- "traefik.http.routers.wp-valpo.rule=Host(`${CN}`)"
2021-05-09 22:07:17 +02:00
networks:
proxy:
external: true