media-server-docker-compose/wordpress/docker-compose.yml

35 lines
829 B
YAML
Raw Normal View History

2024-04-28 01:43:53 -04:00
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
2024-04-28 01:43:53 -04:00
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
2024-04-28 01:43:53 -04:00
volumes:
wordpress-botc:
db:
2024-04-28 01:43:53 -04:00
networks:
default:
name: nginx-proxy
external: true