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