new structure seems to be in working order

This commit is contained in:
Neuro 2024-04-28 02:33:37 -04:00
parent 9d9eed1633
commit e371d2c43b
4 changed files with 45 additions and 17 deletions

View File

@ -13,6 +13,7 @@ services:
- ./docker/provision/mysql/init:/docker-entrypoint-initdb.d
volumes:
db:
external: true
networks:
default:
name: nginx-proxy

View File

@ -1,7 +1,20 @@
services:
redis:
image: redis:alpine
container_name: redis-dbcache
restart: unless-stopped
db:
image: mysql:latest
restart: always
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${DBPASS}
- MYSQL_PASSWORD=${DBPASS}
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=root
nextcloud:
depends_on:
- db
image: lscr.io/linuxserver/nextcloud:latest
container_name: nextcloud
environment:
@ -16,11 +29,13 @@ services:
REDIS_HOST: redis
LETSENCRYPT_HOST: nextcloud.${DOMAIN}
LETSENCRYPT_EMAIL: ${EMAIL}
# LETSENCRYPT_TEST: true
LETSENCRYPT_TEST: true
volumes:
- ${CONFIG_LOCATION}/nextcloud:/config
- ${DATA_LOCATION}/Cloud/Nextcloud:/data
restart: unless-stopped
volumes:
db:
networks:
default:
name: nginx-proxy

View File

@ -1,21 +1,33 @@
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"
LETSENCRYPT_HOST: "botc.${DOMAIN}, *.phillybotc.com"
LETSENCRYPT_EMAIL: ${EMAIL}
volumes:
- wordpress-botc:/var/www/html
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