Merge pull request #2 from bjageman/onedb
finally found a way to use one DB
This commit is contained in:
commit
6a2a0b552a
|
@ -3,9 +3,14 @@ services:
|
|||
image: jwilder/nginx-proxy
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- ./client_max_body_size.conf:/etc/nginx/conf.d/client_max_body_size.conf:ro
|
||||
redis:
|
||||
image: redis:alpine
|
||||
container_name: redis-dbcache
|
||||
restart: unless-stopped
|
||||
plex:
|
||||
image: plexinc/pms-docker:latest
|
||||
container_name: plex
|
||||
|
@ -134,7 +139,6 @@ services:
|
|||
ports:
|
||||
- 8686:8686
|
||||
restart: unless-stopped
|
||||
|
||||
mylar3:
|
||||
image: lscr.io/linuxserver/mylar3:latest
|
||||
container_name: mylar3
|
||||
|
@ -181,7 +185,7 @@ services:
|
|||
# - </path/to/podcasts>:/podcasts
|
||||
- ${DATA_LOCATION}/Audiobooks/metadata:/metadata
|
||||
environment:
|
||||
- TZ=America/Toronto
|
||||
- TZ=${TZ}
|
||||
- VIRTUAL_HOST=audiobookshelf.${DOMAIN}
|
||||
readarr:
|
||||
image: lscr.io/linuxserver/readarr:develop
|
||||
|
@ -218,73 +222,62 @@ services:
|
|||
ports:
|
||||
- 8788:8788
|
||||
restart: unless-stopped
|
||||
wordpress-home:
|
||||
wordpress-botc:
|
||||
depends_on:
|
||||
- db-home
|
||||
- db
|
||||
image: wordpress
|
||||
restart: always
|
||||
ports:
|
||||
- 8081:80
|
||||
environment:
|
||||
WORDPRESS_DB_HOST: db-home
|
||||
WORDPRESS_DB_USER: ${DBUSER}
|
||||
WORDPRESS_DB_HOST: db
|
||||
WORDPRESS_DB_USER: root
|
||||
WORDPRESS_DB_PASSWORD: ${DBPASS}
|
||||
WORDPRESS_DB_NAME: homedb
|
||||
WORDPRESS_DB_NAME: clocktower
|
||||
VIRTUAL_HOST: "botc.${DOMAIN}, *.phillybotc.com"
|
||||
volumes:
|
||||
- wordpress-botc:/var/www/html
|
||||
wordpress-home:
|
||||
depends_on:
|
||||
- db
|
||||
image: wordpress
|
||||
restart: always
|
||||
environment:
|
||||
WORDPRESS_DB_HOST: db
|
||||
WORDPRESS_DB_USER: root
|
||||
WORDPRESS_DB_PASSWORD: ${DBPASS}
|
||||
WORDPRESS_DB_NAME: homepage
|
||||
VIRTUAL_HOST: "${DOMAIN}, www.${DOMAIN}"
|
||||
volumes:
|
||||
- wordpress-home:/var/www/html
|
||||
db-home:
|
||||
db:
|
||||
image: mysql:latest
|
||||
restart: always
|
||||
environment:
|
||||
MYSQL_DATABASE: homedb
|
||||
MYSQL_USER: ${DBUSER}
|
||||
MYSQL_PASSWORD: ${DBPASS}
|
||||
MYSQL_RANDOM_ROOT_PASSWORD: '1'
|
||||
MYSQL_ROOT_PASSWORD: ${DBPASS}
|
||||
volumes:
|
||||
- db-home:/var/lib/mysql
|
||||
- db:/var/lib/mysql
|
||||
- ./docker/provision/mysql/init:/docker-entrypoint-initdb.d
|
||||
#Nextcloud
|
||||
nextcloud:
|
||||
depends_on:
|
||||
- db
|
||||
image: lscr.io/linuxserver/nextcloud:latest
|
||||
container_name: nextcloud
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Etc/UTC
|
||||
- VIRTUAL_HOST=nextcloud.${DOMAIN}
|
||||
PUID: "1000"
|
||||
PGID: "1000"
|
||||
TZ: "${TZ}"
|
||||
VIRTUAL_HOST: "nextcloud.${DOMAIN}"
|
||||
MYSQL_HOST: db
|
||||
MYSQL_DATABASE: nextcloud
|
||||
MYSQL_USER: root
|
||||
MYSQL_PASSWORD: ${DBPASS}
|
||||
volumes:
|
||||
- ${CONFIG_LOCATION}/nextcloud:/config
|
||||
- ${DATA_LOCATION}/Cloud/Nextcloud:/data
|
||||
ports:
|
||||
- 443:443
|
||||
restart: unless-stopped
|
||||
wordpress-botc:
|
||||
depends_on:
|
||||
- db-botc
|
||||
image: wordpress
|
||||
restart: always
|
||||
ports:
|
||||
- 8089:80
|
||||
environment:
|
||||
WORDPRESS_DB_HOST: db-botc
|
||||
WORDPRESS_DB_USER: ${DBUSER}
|
||||
WORDPRESS_DB_PASSWORD: ${DBPASS}
|
||||
WORDPRESS_DB_NAME: botcdb
|
||||
VIRTUAL_HOST: "phillybotc.com, *.phillybotc.com"
|
||||
volumes:
|
||||
- wordpress-botc:/var/www/html
|
||||
db-botc:
|
||||
image: mysql:latest
|
||||
restart: always
|
||||
environment:
|
||||
MYSQL_DATABASE: db-botc
|
||||
MYSQL_USER: ${DBUSER}
|
||||
MYSQL_PASSWORD: ${DBPASS}
|
||||
MYSQL_RANDOM_ROOT_PASSWORD: '1'
|
||||
volumes:
|
||||
- db-botc:/var/lib/mysql
|
||||
volumes:
|
||||
wordpress-home:
|
||||
db-home:
|
||||
wordpress-botc:
|
||||
db-botc:
|
||||
db:
|
||||
|
||||
|
||||
|
|
9
docker/provision/mysql/init/01-databases.sql
Normal file
9
docker/provision/mysql/init/01-databases.sql
Normal file
|
@ -0,0 +1,9 @@
|
|||
# create databases
|
||||
CREATE DATABASE IF NOT EXISTS `nextcloud`;
|
||||
CREATE DATABASE IF NOT EXISTS `homepage`;
|
||||
CREATE DATABASE IF NOT EXISTS `clocktower`;
|
||||
|
||||
-- # create root user and grant rights
|
||||
-- CREATE USER 'brodin'@'%' IDENTIFIED BY 'whiskey-wango-woxtrot';
|
||||
-- GRANT ALL PRIVILEGES ON *.* TO 'brodin'@'%' WITH GRANT OPTION;
|
||||
-- FLUSH PRIVILEGES;
|
Loading…
Reference in New Issue
Block a user