🐳 Volume mapping in docker-compose first draft

This commit is contained in:
2021-11-02 00:08:31 -07:00
parent 4209012298
commit c6e755eca6
4 changed files with 17 additions and 33 deletions

View File

View File

@@ -6,10 +6,11 @@ services:
context: .
image: frishi/threetwo
container_name: threetwo-ui
env_file: ./docker-compose.env
environment:
UNDERLYING_HOSTNAME: rook
env_file: ./docker-env/docker-compose.env
restart: unless-stopped
volumes:
- "comics:/comics"
- "userdata:/userdata"
ports:
- "8050:8050"
- "3050:3050"
@@ -33,6 +34,9 @@ services:
container_name: comicvine-api
ports:
- "3080:3080"
volumes:
- "comics:/comics"
- "userdata:/userdata"
environment:
SERVICES: api
env_file: ./docker-env/comicvine-service.env
@@ -64,6 +68,9 @@ services:
ports:
- "3000:3000"
- "3001:3001"
volumes:
- "comics:/comics"
- "userdata:/userdata"
environment:
SERVICES: api
env_file: ./docker-env/threetwo-import-service.env
@@ -184,6 +191,10 @@ networks:
external: true
volumes:
comics:
name: ${COMICS_DIRECTORY}
userdata:
name: ${USERDATA_DIRECTORY}
mongodb_data:
driver: local

View File

@@ -0,0 +1,3 @@
UNDERLYING_HOSTNAME=rook
COMICS_DIRECTORY=/mnt/data/comics
USERDATA_DIRECTORY=/mnt/data/userdata

View File

@@ -1,30 +0,0 @@
server {
listen 0.0.0.0:8050;
location / {
proxy_pass http://0.0.0.0:8050;
}
}
server {
listen 0.0.0.0:8051;
location /comicvine-service {
proxy_pass http://0.0.0.0:8051;
}
}
server {
listen 0.0.0.0:3080;
location /comicvine-service {
proxy_pass http://0.0.0.0:3080;
}
}
server {
listen 0.0.0.0:3000;
location /import-service {
proxy_pass http://0.0.0.0:3000;
}
}