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

View File

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

540
yarn.lock

File diff suppressed because it is too large Load Diff