38 lines
899 B
YAML
38 lines
899 B
YAML
services:
|
|
db:
|
|
image: mysql:8.0
|
|
restart: always
|
|
environment:
|
|
MYSQL_DATABASE: clocktower
|
|
MYSQL_USER: wordpress
|
|
MYSQL_PASSWORD: ${DBPASS}
|
|
MYSQL_RANDOM_ROOT_PASSWORD: '1'
|
|
volumes:
|
|
- db:/var/lib/mysql
|
|
wordpress:
|
|
depends_on:
|
|
- db
|
|
image: wordpress
|
|
restart: always
|
|
environment:
|
|
# PUID: ${UID}
|
|
# PGID: ${GID}
|
|
WORDPRESS_DB_HOST: botc-db-1
|
|
WORDPRESS_DB_USER: wordpress
|
|
WORDPRESS_DB_PASSWORD: ${DBPASS}
|
|
WORDPRESS_DB_NAME: clocktower
|
|
VIRTUAL_HOST: "www.phillybotc.com, phillybotc.com"
|
|
LETSENCRYPT_HOST: "phillybotc.com, www.phillybotc.com"
|
|
LETSENCRYPT_EMAIL: ${EMAIL}
|
|
# LETSENCRYPT_TEST: true
|
|
volumes:
|
|
- ./wordpress:/var/www/html
|
|
- ./backup:/var/www/html/wp-content/updraft
|
|
volumes:
|
|
wordpress:
|
|
db:
|
|
networks:
|
|
default:
|
|
name: nginx-proxy
|
|
external: true
|