-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
56 lines (56 loc) · 1.31 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: "3"
services:
task_template:
build:
context: ./task_template
dockerfile: ${TASK_DOCKERFILE}
networks:
- mynetwork
model_template:
build: ./model_template
networks:
- mynetwork
environment:
- MODEL_TO_USE=${MODEL}
- OPENAI_API_KEY=${OPENAI_API_KEY}
model_handler_template:
build: ./model_handler_template
networks:
- mynetwork
environment:
- ATLAS_URI=mongodb://collabai-mongo/
orchestrator:
depends_on:
- task_template
- model_template
- model_handler_template
build: ./orchestrator
networks:
- mynetwork
mongo:
container_name: collabai-mongo
image: mongo:7.0.4
volumes:
- ./mongodb:/data/db
ports:
- 127.0.0.1:27017:27017
networks:
- mynetwork
nginx:
image: docker.io/library/nginx:alpine
environment:
- HOSTNAME=localhost
ports:
- 0.0.0.0:${NGINX_HTTPS_PORT}:443
volumes:
- ./dev_data/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./dev_data/nginx/templates:/etc/nginx/templates
- ./dev_data/certs/sp.crt:/certificates/certificate.crt
- ./dev_data/certs/sp.key:/certificates/private.key
depends_on:
- task_template
container_name: nginx-server
networks:
- mynetwork
networks:
mynetwork: