-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose_openai.yaml
56 lines (56 loc) · 1.27 KB
/
docker-compose_openai.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: Dockerfile_openai
ports:
- 0.0.0.0:8070:8061
- 8062:8062
networks:
- mynetwork
model_template:
build: ./model_template
ports:
- 0.0.0.0:8072:8061
networks:
- mynetwork
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
model_handler_template:
build: ./model_handler_template
ports:
- 0.0.0.0:8071:8061
networks:
- mynetwork
environment:
- USE_ATLAS=False
- ATLAS_URI=${ATLAS_URI}
orchestrator:
depends_on:
- task_template
- model_template
- model_handler_template
build: ./orchestrator
networks:
- mynetwork
nginx:
image: docker.io/library/nginx:alpine
environment:
- NGINX_HTTPS_PORT=443
- HOSTNAME=localhost
ports:
- 0.0.0.0:80:80
- 0.0.0.0:443: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: