services: db: image: mysql:8.0 restart: always environment: MYSQL_DATABASE: clocktower MYSQL_USER: root MYSQL_PASSWORD: ${DBPASS} MYSQL_RANDOM_ROOT_PASSWORD: '1' volumes: - db:/var/lib/mysql wordpress-botc: depends_on: - db image: wordpress restart: always environment: WORDPRESS_DB_HOST: db WORDPRESS_DB_USER: root WORDPRESS_DB_PASSWORD: ${DBPASS} WORDPRESS_DB_NAME: clocktower VIRTUAL_HOST: "botc.${DOMAIN}, *.phillybotc.com, phillybotc.com" LETSENCRYPT_HOST: "botc.${DOMAIN}, *.phillybotc.com, phillybotc.com" LETSENCRYPT_EMAIL: ${EMAIL} LETSENCRYPT_TEST: true volumes: - wordpress-botc:/var/www/html volumes: wordpress-botc: db: networks: default: name: nginx-proxy external: true