-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
42 lines (39 loc) · 975 Bytes
/
docker-compose.yaml
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
41
42
services:
mongodb:
image: mongo:latest
container_name: mongodb
ports:
- "27017:27017"
networks:
- appnetwork
gateway:
platform: linux/amd64
build:
context: .
dockerfile: ./gateway/Dockerfile-gateway
# dockerfile: Dockerfile
image: ghcr.io/biosimulators/bio-compose-server-gateway:0.0.1
container_name: gateway
ports:
- "3001:3001"
networks:
- appnetwork
# command: conda run -n server uvicorn gateway.main:app --host 0.0.0.0 --port 3001 --reload
depends_on:
- mongodb
compose-worker:
platform: linux/amd64
build:
context: .
dockerfile: ./worker/Dockerfile-worker
# dockerfile: Dockerfile
image: ghcr.io/biosimulators/bio-compose-server-worker:0.0.1
container_name: worker
networks:
- appnetwork
# command: conda run -n server python worker/main.py
depends_on:
- mongodb
networks:
appnetwork:
driver: bridge