🐳 docker-compose volume mappings

This commit is contained in:
2021-09-01 12:25:39 -07:00
parent 762b5cb037
commit 66aac9e35c
6 changed files with 37 additions and 19 deletions

View File

@@ -1,14 +1,6 @@
version: "3.7"
services:
nginx:
image: nginx
container_name: proxy
ports:
- "80:80"
volumes:
- ./proxy.conf:/etc/nginx/conf.d/default.conf
threetwo:
build:
context: .
@@ -29,7 +21,9 @@ services:
- "3080:3080"
environment:
SERVICES: api
env_file: comicvine-service.env
env_file: ./docker-env/comicvine-service.env
volumes:
- 'userdata:/comicvine-service/userdata'
depends_on:
- nats
networks:
@@ -42,7 +36,7 @@ services:
container_name: comicvine-service
environment:
SERVICES: comicvine
env_file: comicvine-service.env
env_file: ./docker-env/comicvine-service.env
networks:
- proxy
@@ -55,7 +49,10 @@ services:
- "3000:3000"
environment:
SERVICES: api
env_file: threetwo-import-service.env
env_file: ./docker-env/threetwo-import-service.env
volumes:
- 'userdata:/threetwo-import-service/userdata'
- 'comics:/threetwo-import-service/comics'
depends_on:
- nats
- mongodb
@@ -72,7 +69,7 @@ services:
- nats
environment:
SERVICES: import
env_file: threetwo-import-service.env
env_file: ./docker-env/threetwo-import-service.env
networks:
- proxy
@@ -86,7 +83,7 @@ services:
- nats
environment:
SERVICES: imagetransformation
env_file: threetwo-import-service.env
env_file: ./docker-env/threetwo-import-service.env
networks:
- proxy
@@ -105,12 +102,22 @@ services:
container_name: transporter
networks:
- proxy
nginx:
image: nginx
container_name: proxy
ports:
- "80:80"
volumes:
- ./proxy.conf:/etc/nginx/conf.d/default.conf
networks:
proxy:
external: true
volumes:
userdata:
comics:
mongodb_data:
driver: local