stack/docker-compose.wordpress.yml
2024-01-26 19:16:39 +01:00

29 lines
667 B
YAML

version: "2.2"
services:
cddn-db:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "wordpress"
volumes:
- /srv/cddn/mysql/data:/var/lib/mysql
networks:
- internal
cddn-site:
image: wordpress:latest
depends_on:
- cddn-db
volumes:
- /srv/cddn/wordpress/data:/var/www/html
- /srv/cddn/wordpress/other/plugins:/var/www/html/wp-content/plugins
restart: always
environment:
WORDPRESS_DB_HOST: "cddn-db:3306"
WORDPRESS_DB_USER: "root"
WORDPRESS_DB_PASSWORD: "root"
WORDPRESS_DB_NAME: "wordpress"
networks:
- proxy
- internal