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 - ./docker/provision/mysql/init:/docker-entrypoint-initdb.d
volumes: volumes:
db: db:
external: true
networks: networks:
default: default:
name: nginx-proxy name: nginx-proxy

View File

@ -1,7 +1,20 @@
services: 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: nextcloud:
depends_on:
- db
image: lscr.io/linuxserver/nextcloud:latest image: lscr.io/linuxserver/nextcloud:latest
container_name: nextcloud container_name: nextcloud
environment: environment:
@ -16,11 +29,13 @@ services:
REDIS_HOST: redis REDIS_HOST: redis
LETSENCRYPT_HOST: nextcloud.${DOMAIN} LETSENCRYPT_HOST: nextcloud.${DOMAIN}
LETSENCRYPT_EMAIL: ${EMAIL} LETSENCRYPT_EMAIL: ${EMAIL}
# LETSENCRYPT_TEST: true LETSENCRYPT_TEST: true
volumes: volumes:
- ${CONFIG_LOCATION}/nextcloud:/config - ${CONFIG_LOCATION}/nextcloud:/config
- ${DATA_LOCATION}/Cloud/Nextcloud:/data - ${DATA_LOCATION}/Cloud/Nextcloud:/data
restart: unless-stopped restart: unless-stopped
volumes:
db:
networks: networks:
default: default:
name: nginx-proxy name: nginx-proxy

View File

@ -1,21 +1,33 @@
services: 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: wordpress-botc:
depends_on: depends_on:
- db - db
image: wordpress image: wordpress
restart: always restart: always
environment: environment:
WORDPRESS_DB_HOST: db WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: root WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: ${DBPASS} WORDPRESS_DB_PASSWORD: ${DBPASS}
WORDPRESS_DB_NAME: clocktower WORDPRESS_DB_NAME: clocktower
VIRTUAL_HOST: "botc.${DOMAIN}, *.phillybotc.com" VIRTUAL_HOST: "botc.${DOMAIN}, *.phillybotc.com, phillybotc.com"
LETSENCRYPT_HOST: "botc.${DOMAIN}, *.phillybotc.com" LETSENCRYPT_HOST: "botc.${DOMAIN}, *.phillybotc.com, phillybotc.com"
LETSENCRYPT_EMAIL: ${EMAIL} LETSENCRYPT_EMAIL: ${EMAIL}
volumes: LETSENCRYPT_TEST: true
- wordpress-botc:/var/www/html volumes:
- wordpress-botc:/var/www/html
volumes: volumes:
wordpress-botc: wordpress-botc:
db:
networks: networks:
default: default:
name: nginx-proxy name: nginx-proxy