💿 Volume mapping in docker-compose configuration

This commit is contained in:
2021-11-03 12:58:00 -07:00
parent d27f4dbe06
commit a383737535
3 changed files with 18 additions and 21 deletions

View File

@@ -9,8 +9,8 @@ services:
env_file: ./docker-env/docker-compose.env env_file: ./docker-env/docker-compose.env
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- comics:/comics - ${COMICS_DIRECTORY}:/comics
- userdata:/userdata - ${USERDATA_DIRECTORY}:/userdata
ports: ports:
- "8050:8050" - "8050:8050"
- "3050:3050" - "3050:3050"
@@ -35,8 +35,8 @@ services:
ports: ports:
- "3080:3080" - "3080:3080"
volumes: volumes:
- comics:/comicvine-service/comics - ${COMICS_DIRECTORY}:/comicvine-service/comics
- userdata:/comicvine-service/userdata - ${USERDATA_DIRECTORY}:/comicvine-service/userdata
environment: environment:
SERVICES: api SERVICES: api
env_file: ./docker-env/comicvine-service.env env_file: ./docker-env/comicvine-service.env
@@ -53,8 +53,8 @@ services:
environment: environment:
SERVICES: comicvine SERVICES: comicvine
volumes: volumes:
- comics:/comicvine-service/comics - ${COMICS_DIRECTORY}:/comicvine-service/comics
- userdata:/comicvine-service/userdata - ${USERDATA_DIRECTORY}:/comicvine-service/userdata
env_file: ./docker-env/comicvine-service.env env_file: ./docker-env/comicvine-service.env
networks: networks:
- proxy - proxy
@@ -71,8 +71,8 @@ services:
SERVICES: api SERVICES: api
env_file: ./docker-env/threetwo-import-service.env env_file: ./docker-env/threetwo-import-service.env
volumes: volumes:
- "userdata:/threetwo-import-service/userdata" - ${USERDATA_DIRECTORY}:/threetwo-import-service/userdata
- "comics:/threetwo-import-service/comics" - ${COMICS_DIRECTORY}:/threetwo-import-service/comics
depends_on: depends_on:
- nats - nats
- db - db
@@ -90,8 +90,8 @@ services:
environment: environment:
SERVICES: import SERVICES: import
volumes: volumes:
- userdata:/threetwo-import-service/userdata - ${USERDATA_DIRECTORY}:/threetwo-import-service/userdata
- comics:/threetwo-import-service/comics - ${COMICS_DIRECTORY}:/threetwo-import-service/comics
env_file: ./docker-env/threetwo-import-service.env env_file: ./docker-env/threetwo-import-service.env
networks: networks:
- proxy - proxy
@@ -102,8 +102,8 @@ services:
image: frishi/threetwo-import-service image: frishi/threetwo-import-service
container_name: image-transformation container_name: image-transformation
volumes: volumes:
- userdata:/threetwo-import-service/userdata - ${USERDATA_DIRECTORY}:/threetwo-import-service/userdata
- comics:/threetwo-import-service/comics - ${COMICS_DIRECTORY}:/threetwo-import-service/comics
depends_on: depends_on:
- db - db
- nats - nats
@@ -119,8 +119,8 @@ services:
image: frishi/threetwo-import-service image: frishi/threetwo-import-service
container_name: library-queue container_name: library-queue
volumes: volumes:
- userdata:/threetwo-import-service/userdata - ${USERDATA_DIRECTORY}:/threetwo-import-service/userdata
- comics:/threetwo-import-service/comics - ${COMICS_DIRECTORY}:/threetwo-import-service/comics
depends_on: depends_on:
- db - db
- nats - nats
@@ -187,12 +187,6 @@ networks:
external: true external: true
volumes: volumes:
comics:
name: ${COMICS_DIRECTORY}
external: false
userdata:
name: ${USERDATA_DIRECTORY}
external: false
mongodb_data: mongodb_data:
driver: local driver: local

View File

@@ -3,6 +3,7 @@ LOGLEVEL=info
SERVICEDIR=dist/services SERVICEDIR=dist/services
PWD=./ PWD=./
TRANSPORTER=nats://nats:4222 TRANSPORTER=nats://nats:4222
COMICS_DIRECTORY=/mnt/unraidshare/directconnect/downloads/comics
USERDATA_DIRECTORY=/mnt/unraidshare/directconnect/downloads/userdata
CACHER=Memory CACHER=Memory

View File

@@ -6,4 +6,6 @@ REDIS_URI=redis://redis:6379
TRANSPORTER=nats://nats:4222 TRANSPORTER=nats://nats:4222
CALIBRE_EBOOK_META_PATH=/opt/calibre/ebook-meta CALIBRE_EBOOK_META_PATH=/opt/calibre/ebook-meta
CACHER=Memory CACHER=Memory
COMICS_DIRECTORY=/mnt/unraidshare/directconnect/downloads/comics
USERDATA_DIRECTORY=/mnt/unraidshare/directconnect/downloads/userdata