blog-wp/docker-compose.yml

21 lines
560 B
YAML
Raw Normal View History

2024-08-12 15:30:58 +05:00
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"
2024-08-14 13:45:04 +05:00
- "traefik.http.routers.wordpress.rule=Host(`${SERVER_DOMAIN}`)"
2024-08-14 10:50:05 +05:00
environment:
2024-08-12 15:30:58 +05:00
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