35 lines
882 B
YAML
35 lines
882 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:rw
|
|
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:rw
|
|
- ./backup:/var/www/html/wp-content/updraft:rw
|
|
networks:
|
|
default:
|
|
name: nginx-proxy
|
|
external: true
|