-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (37 loc) · 1.1 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: "3"
services:
content-api:
restart: "unless-stopped"
container_name: "content-api"
build:
context: "content-api/"
dockerfile: "docker/Dockerfile"
environment:
MONGO_INITDB_ROOT_USERNAME: '${MONGO_DB_USERNAME}'
MONGO_INITDB_ROOT_PASSWORD: '${MONGO_DB_PASSWORD}'
volumes:
- ./content-api/src:/app/api/src
ports:
- "8000:8000"
networks:
- computing_api_default
content-registry:
restart: "unless-stopped"
container_name: "content-registry"
build:
context: "content-regist/"
dockerfile: "docker/Dockerfile"
environment:
MONGO_INITDB_ROOT_USERNAME: '${MONGO_DB_USERNAME}'
MONGO_INITDB_ROOT_PASSWORD: '${MONGO_DB_PASSWORD}'
CONTAINER_WORKING_DIR: "${PWD}/data" # working_directory (workflow dict) when launching jobs from content registry
volumes:
- ./content-regist/data:/app/content-regist/data
- ./content-regist/src:/app/content-regist/src
ports:
- "8051:8051"
networks:
- computing_api_default
networks:
computing_api_default:
external: true