🐳 Consolidating env vars in a single file

This commit is contained in:
2022-01-24 00:40:34 -08:00
parent ca6b030746
commit 30733dc62d
4 changed files with 296 additions and 275 deletions

13
docker-compose.env Normal file
View File

@@ -0,0 +1,13 @@
UNDERLYING_HOSTNAME=ghost
COMICS_DIRECTORY=/Users/rishi/work/threetwo/comics
USERDATA_DIRECTORY=/Users/rishi/work/threetwo/userdata
LOGGER=true
LOGLEVEL=info
SERVICEDIR=dist/services
MONGO_URI=mongodb://db:27017/threetwo
REDIS_URI=redis://redis:6379
TRANSPORTER=redis://redis:6379
CALIBRE_EBOOK_META_PATH=/opt/calibre/ebook-meta
CACHER=Memory

View File

@@ -1,23 +1,22 @@
version: "3.5"
version: "3.7"
x-userdata-volume:
&userdata-volume
type: bind
source: ${USERDATA_DIRECTORY}
target: /Users/rishi/work/threetwo/userdata
target: /userdata
x-comics-volume:
&comics-volume
type: bind
source: ${COMICS_DIRECTORY}
target: /Users/rishi/work/threetwo/comics
target: /comics
services:
threetwo:
build:
context: .
context: .
image: frishi/threetwo
container_name: threetwo-ui
env_file: ./environment.list
restart: unless-stopped
ports:
@@ -45,7 +44,7 @@ services:
- *userdata-volume
environment:
SERVICES: api
env_file: comicvine-service.env
env_file: docker-compose.env
depends_on:
- redis
networks:
@@ -58,10 +57,10 @@ services:
container_name: comicvine-service
environment:
SERVICES: comicvine
env_file: docker-compose.env
volumes:
- *comics-volume
- *userdata-volume
env_file: comicvine-service.env
networks:
- proxy
@@ -75,7 +74,7 @@ services:
- "3001:3001"
environment:
SERVICES: api
env_file: threetwo-import-service.env
env_file: docker-compose.env
volumes:
- *comics-volume
- *userdata-volume
@@ -97,11 +96,11 @@ services:
environment:
name: core-services
SERVICES: import,libraryqueue,settings,imagetransformation
env_file: docker-compose.env
volumes:
- *comics-volume
- *userdata-volume
env_file: threetwo-import-service.env
networks:
- proxy

View File

@@ -1 +0,0 @@
UNDERLYING_HOSTNAME=ghost

540
yarn.lock

File diff suppressed because it is too large Load Diff