🔧 Updating the Dockerfile for Threetwo
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM node:12.21.0
|
FROM node:14-slim
|
||||||
LABEL maintainer="Rishi Ghan <rishi.ghan@gmail.com>"
|
LABEL maintainer="Rishi Ghan <rishi.ghan@gmail.com>"
|
||||||
|
|
||||||
RUN mkdir -p /usr/src/threetwo
|
RUN mkdir -p /usr/src/threetwo
|
||||||
|
|||||||
@@ -1,5 +1,16 @@
|
|||||||
version: "3.3"
|
version: "3.5"
|
||||||
|
|
||||||
|
x-userdata-volume:
|
||||||
|
&userdata-volume
|
||||||
|
type: bind
|
||||||
|
source: ${USERDATA_DIRECTORY}
|
||||||
|
target: /userdata
|
||||||
|
|
||||||
|
x-comics-volume:
|
||||||
|
&comics-volume
|
||||||
|
type: bind
|
||||||
|
source: ${COMICS_DIRECTORY}
|
||||||
|
target: /comics
|
||||||
services:
|
services:
|
||||||
threetwo:
|
threetwo:
|
||||||
build:
|
build:
|
||||||
@@ -8,9 +19,7 @@ services:
|
|||||||
container_name: threetwo-ui
|
container_name: threetwo-ui
|
||||||
env_file: ./environment.list
|
env_file: ./environment.list
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
|
||||||
- $COMICS_DIRECTORY:/comics
|
|
||||||
- $USERDATA_DIRECTORY:/userdata
|
|
||||||
ports:
|
ports:
|
||||||
- "8050:8050"
|
- "8050:8050"
|
||||||
- "3050:3050"
|
- "3050:3050"
|
||||||
@@ -19,12 +28,8 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
- libraryqueue
|
|
||||||
- redis
|
- redis
|
||||||
- settings
|
|
||||||
- importapi
|
|
||||||
- import
|
|
||||||
- imagetransformation
|
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
|
|
||||||
@@ -35,9 +40,9 @@ services:
|
|||||||
container_name: comicvine-api
|
container_name: comicvine-api
|
||||||
ports:
|
ports:
|
||||||
- "3080:3080"
|
- "3080:3080"
|
||||||
volumes:
|
volumes:
|
||||||
- ${COMICS_DIRECTORY}:/comicvine-service/comics
|
- *comics-volume
|
||||||
- ${USERDATA_DIRECTORY}:/comicvine-service/userdata
|
- *userdata-volume
|
||||||
environment:
|
environment:
|
||||||
SERVICES: api
|
SERVICES: api
|
||||||
env_file: comicvine-service.env
|
env_file: comicvine-service.env
|
||||||
@@ -53,10 +58,9 @@ services:
|
|||||||
container_name: comicvine-service
|
container_name: comicvine-service
|
||||||
environment:
|
environment:
|
||||||
SERVICES: comicvine
|
SERVICES: comicvine
|
||||||
volumes:
|
volumes:
|
||||||
- ${COMICS_DIRECTORY}:/comicvine-service/comics
|
- *comics-volume
|
||||||
- ${USERDATA_DIRECTORY}:/comicvine-service/userdata
|
- *userdata-volume
|
||||||
- ${SERVICE_ENV_FILE}:/comicvine-service/.env/service.env
|
|
||||||
env_file: comicvine-service.env
|
env_file: comicvine-service.env
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
@@ -72,9 +76,9 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
SERVICES: api
|
SERVICES: api
|
||||||
env_file: threetwo-import-service.env
|
env_file: threetwo-import-service.env
|
||||||
volumes:
|
volumes:
|
||||||
- ${USERDATA_DIRECTORY}:/threetwo-import-service/userdata
|
- *comics-volume
|
||||||
- ${COMICS_DIRECTORY}:/threetwo-import-service/comics
|
- *userdata-volume
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
- db
|
- db
|
||||||
@@ -85,70 +89,21 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: https://github.com/rishighan/threetwo-core-service.git
|
context: https://github.com/rishighan/threetwo-core-service.git
|
||||||
image: frishi/threetwo-core-service
|
image: frishi/threetwo-core-service
|
||||||
container_name: import
|
container_name: core-services
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- redis
|
- redis
|
||||||
environment:
|
environment:
|
||||||
SERVICES: import
|
name: core-services
|
||||||
volumes:
|
SERVICES: import,libraryqueue,settings,imagetransformation
|
||||||
- ${USERDATA_DIRECTORY}:/threetwo-import-service/userdata
|
volumes:
|
||||||
- ${COMICS_DIRECTORY}:/threetwo-import-service/comics
|
- *comics-volume
|
||||||
- ${SERVICE_ENV_FILE}:/threetwo-import-service/.env/service.env
|
- *userdata-volume
|
||||||
|
|
||||||
env_file: threetwo-import-service.env
|
env_file: threetwo-import-service.env
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
|
|
||||||
imagetransformation:
|
|
||||||
build:
|
|
||||||
context: https://github.com/rishighan/threetwo-core-service.git
|
|
||||||
image: frishi/threetwo-core-service
|
|
||||||
container_name: image-transformation
|
|
||||||
volumes:
|
|
||||||
- ${USERDATA_DIRECTORY}:/threetwo-import-service/userdata
|
|
||||||
- ${COMICS_DIRECTORY}:/threetwo-import-service/comics
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
- redis
|
|
||||||
environment:
|
|
||||||
SERVICES: imagetransformation
|
|
||||||
env_file: threetwo-import-service.env
|
|
||||||
networks:
|
|
||||||
- proxy
|
|
||||||
|
|
||||||
libraryqueue:
|
|
||||||
build:
|
|
||||||
context: https://github.com/rishighan/threetwo-core-service.git
|
|
||||||
image: frishi/threetwo-core-service
|
|
||||||
container_name: library-queue
|
|
||||||
volumes:
|
|
||||||
- ${USERDATA_DIRECTORY}:/threetwo-import-service/userdata
|
|
||||||
- ${COMICS_DIRECTORY}:/threetwo-import-service/comics
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
- redis
|
|
||||||
environment:
|
|
||||||
SERVICES: libraryqueue
|
|
||||||
env_file: threetwo-import-service.env
|
|
||||||
networks:
|
|
||||||
- proxy
|
|
||||||
|
|
||||||
settings:
|
|
||||||
build:
|
|
||||||
context: https://github.com/rishighan/threetwo-core-service.git
|
|
||||||
image: frishi/threetwo-core-service
|
|
||||||
container_name: settings
|
|
||||||
volumes:
|
|
||||||
- ${USERDATA_DIRECTORY}:/threetwo-import-service/userdata
|
|
||||||
- ${COMICS_DIRECTORY}:/threetwo-import-service/comics
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
- redis
|
|
||||||
environment:
|
|
||||||
SERVICES: settings
|
|
||||||
env_file: threetwo-import-service.env
|
|
||||||
networks:
|
|
||||||
- proxy
|
|
||||||
db:
|
db:
|
||||||
image: "bitnami/mongodb:latest"
|
image: "bitnami/mongodb:latest"
|
||||||
container_name: database
|
container_name: database
|
||||||
@@ -189,6 +144,7 @@ networks:
|
|||||||
proxy:
|
proxy:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
mongodb_data:
|
mongodb_data:
|
||||||
driver: local
|
driver: local
|
||||||
|
|||||||
Reference in New Issue
Block a user