This commit is contained in:
leo 2024-08-12 15:30:58 +05:00
commit 1eae607418
2 changed files with 29 additions and 0 deletions

8
README.md Normal file
View File

@ -0,0 +1,8 @@
### blog-wp
*docker configuration*
Start: `sudo docker start blog-wp`
Start `sudo docker compose -f /data/blog-wp/docker-compose.yml up -d`
Stop: `sudo docker stop blog-wp`

21
docker-compose.yml Normal file
View File

@ -0,0 +1,21 @@
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