blog-wp/docker-compose.yml
2024-08-12 15:30:58 +05:00

21 lines
561 B
YAML

services:
wordpress:
container_name: blog-wp
image: wordpress:6.6.1-php8.1-apache
restart: always
networks:
- proxynet
env_file:
- /data/secrets/${SERVER_DOMAIN}/${SERVER_DOMAIN}.env
labels:
- "traefik.enable=true"
- "traefik.http.routers.nginx.rule=Host(`${SERVER_DOMAIN}`)"
environment: &env
WORDPRESS_DB_HOST: mariadb
WORDPRESS_DB_USER: ${MARIADB_USER}
WORDPRESS_DB_NAME: ${MARIADB_DB}
volumes:
- /data/appdata/wordpress:/var/www/html
networks:
proxynet:
external: true