initial docker compose setup

This commit is contained in:
deityhub 2021-07-20 09:11:16 +01:00
parent a32447b6f1
commit 7e9766d7ba
2 changed files with 29 additions and 0 deletions

View File

@ -59,6 +59,24 @@ services:
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder
- /usr/src/app/node_modules/
data-ingestor:
ports:
- '3200:3200'
- '9239:9229' # Debugging port.
build:
context: ./data-ingestor
dockerfile: ./Dockerfile.dev
env_file:
- ./data-ingestor/.env
environment:
- SERVER_URL=http://backend:3002
- CLUSTER_KEY=test
volumes:
- ./data-ingestor:/user/src/app
# Use node modules of the container and not host system.
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder
- /usr/src/app/node_modules/
# There can only be one probe in developer docker compose.
probe:
ports:

View File

@ -108,6 +108,17 @@ services:
environment:
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
build: ./licensing
data-ingestor:
ports:
- '3200:3200'
build: ./data-ingestor
env_file:
- ./data-ingestor/.env
environment:
- SERVER_URL=http://backend:3002
- CLUSTER_KEY=test
depends_on:
- backend
probe1:
ports:
- '3024:3024'