2024-04-28 01:43:53 -04:00
|
|
|
services:
|
2024-04-28 02:33:37 -04:00
|
|
|
db:
|
|
|
|
image: mysql:8.0
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: clocktower
|
2024-05-24 14:20:19 -04:00
|
|
|
MYSQL_USER: wordpress
|
2024-04-28 02:33:37 -04:00
|
|
|
MYSQL_PASSWORD: ${DBPASS}
|
|
|
|
MYSQL_RANDOM_ROOT_PASSWORD: '1'
|
|
|
|
volumes:
|
|
|
|
- db:/var/lib/mysql
|
2024-05-24 14:20:19 -04:00
|
|
|
wordpress:
|
2024-04-28 02:33:37 -04:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
image: wordpress
|
|
|
|
restart: always
|
|
|
|
environment:
|
2024-05-24 14:20:19 -04:00
|
|
|
# PUID: ${UID}
|
|
|
|
# PGID: ${GID}
|
|
|
|
WORDPRESS_DB_HOST: botc-db-1
|
|
|
|
WORDPRESS_DB_USER: wordpress
|
2024-04-28 02:33:37 -04:00
|
|
|
WORDPRESS_DB_PASSWORD: ${DBPASS}
|
|
|
|
WORDPRESS_DB_NAME: clocktower
|
2024-06-05 16:59:33 -04:00
|
|
|
VIRTUAL_HOST: "www.phillybotc.com, phillybotc.com"
|
|
|
|
LETSENCRYPT_HOST: "phillybotc.com, www.phillybotc.com"
|
2024-04-28 02:33:37 -04:00
|
|
|
LETSENCRYPT_EMAIL: ${EMAIL}
|
2024-06-05 16:59:33 -04:00
|
|
|
# LETSENCRYPT_TEST: true
|
2024-04-28 02:33:37 -04:00
|
|
|
volumes:
|
2024-06-05 16:59:33 -04:00
|
|
|
- ./wordpress:/var/www/html
|
2024-05-24 14:20:19 -04:00
|
|
|
- ./backup:/var/www/html/wp-content/updraft
|
2024-04-28 01:43:53 -04:00
|
|
|
volumes:
|
2024-05-24 14:20:19 -04:00
|
|
|
wordpress:
|
2024-04-28 02:33:37 -04:00
|
|
|
db:
|
2024-04-28 01:43:53 -04:00
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
name: nginx-proxy
|
|
|
|
external: true
|