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
|
image: jwilder/nginx-proxy
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
|
- "443:443"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
- ./client_max_body_size.conf:/etc/nginx/conf.d/client_max_body_size.conf: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:
|
plex:
|
||||||
image: plexinc/pms-docker:latest
|
image: plexinc/pms-docker:latest
|
||||||
container_name: plex
|
container_name: plex
|
||||||
|
@ -134,7 +139,6 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 8686:8686
|
- 8686:8686
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
mylar3:
|
mylar3:
|
||||||
image: lscr.io/linuxserver/mylar3:latest
|
image: lscr.io/linuxserver/mylar3:latest
|
||||||
container_name: mylar3
|
container_name: mylar3
|
||||||
|
@ -181,7 +185,7 @@ services:
|
||||||
# - </path/to/podcasts>:/podcasts
|
# - </path/to/podcasts>:/podcasts
|
||||||
- ${DATA_LOCATION}/Audiobooks/metadata:/metadata
|
- ${DATA_LOCATION}/Audiobooks/metadata:/metadata
|
||||||
environment:
|
environment:
|
||||||
- TZ=America/Toronto
|
- TZ=${TZ}
|
||||||
- VIRTUAL_HOST=audiobookshelf.${DOMAIN}
|
- VIRTUAL_HOST=audiobookshelf.${DOMAIN}
|
||||||
readarr:
|
readarr:
|
||||||
image: lscr.io/linuxserver/readarr:develop
|
image: lscr.io/linuxserver/readarr:develop
|
||||||
|
@ -218,73 +222,62 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 8788:8788
|
- 8788:8788
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
wordpress-home:
|
wordpress-botc:
|
||||||
depends_on:
|
depends_on:
|
||||||
- db-home
|
- db
|
||||||
image: wordpress
|
image: wordpress
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
|
||||||
- 8081:80
|
|
||||||
environment:
|
environment:
|
||||||
WORDPRESS_DB_HOST: db-home
|
WORDPRESS_DB_HOST: db
|
||||||
WORDPRESS_DB_USER: ${DBUSER}
|
WORDPRESS_DB_USER: root
|
||||||
WORDPRESS_DB_PASSWORD: ${DBPASS}
|
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}"
|
VIRTUAL_HOST: "${DOMAIN}, www.${DOMAIN}"
|
||||||
volumes:
|
volumes:
|
||||||
- wordpress-home:/var/www/html
|
- wordpress-home:/var/www/html
|
||||||
db-home:
|
db:
|
||||||
image: mysql:latest
|
image: mysql:latest
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
MYSQL_DATABASE: homedb
|
MYSQL_ROOT_PASSWORD: ${DBPASS}
|
||||||
MYSQL_USER: ${DBUSER}
|
|
||||||
MYSQL_PASSWORD: ${DBPASS}
|
|
||||||
MYSQL_RANDOM_ROOT_PASSWORD: '1'
|
|
||||||
volumes:
|
volumes:
|
||||||
- db-home:/var/lib/mysql
|
- db:/var/lib/mysql
|
||||||
|
- ./docker/provision/mysql/init:/docker-entrypoint-initdb.d
|
||||||
#Nextcloud
|
#Nextcloud
|
||||||
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:
|
||||||
- PUID=1000
|
PUID: "1000"
|
||||||
- PGID=1000
|
PGID: "1000"
|
||||||
- TZ=Etc/UTC
|
TZ: "${TZ}"
|
||||||
- VIRTUAL_HOST=nextcloud.${DOMAIN}
|
VIRTUAL_HOST: "nextcloud.${DOMAIN}"
|
||||||
|
MYSQL_HOST: db
|
||||||
|
MYSQL_DATABASE: nextcloud
|
||||||
|
MYSQL_USER: root
|
||||||
|
MYSQL_PASSWORD: ${DBPASS}
|
||||||
volumes:
|
volumes:
|
||||||
- ${CONFIG_LOCATION}/nextcloud:/config
|
- ${CONFIG_LOCATION}/nextcloud:/config
|
||||||
- ${DATA_LOCATION}/Cloud/Nextcloud:/data
|
- ${DATA_LOCATION}/Cloud/Nextcloud:/data
|
||||||
ports:
|
|
||||||
- 443:443
|
|
||||||
restart: unless-stopped
|
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:
|
volumes:
|
||||||
wordpress-home:
|
wordpress-home:
|
||||||
db-home:
|
|
||||||
wordpress-botc:
|
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