-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 1.09 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
41
42
43
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
stdin_open: true
tty: true
depends_on:
- api
networks:
- genai_network
api:
build:
context: ./api
dockerfile: Dockerfile
environment:
- ASPNETCORE__ENVIRONMENT=${ENVIRONMENT}
- DOTNET_SKIP_POLICY_LOADING=false
- ConnectionStrings__AzureStorage=${AZURE_STORAGE_CONNECTION_STRING}
- DocumentIntelligence__Endpoint=${DOCUMENTINTELLIGENCE_Endpoint}
- DocumentIntelligence__ApiKey=${DOCUMENTINTELLIGENCE_APIKEY}
- DocumentIntelligence__ModelId=${DOCUMENTINTELLIGENCE_MODELID}
- OpenAI__Endpoint=${AZURE_OPENAI_ENDPOINT}
- OpenAI__ApiKey=${AZURE_OPENAI_APIKEY}
networks:
- genai_network
nginx: #name of the fourth service
build: loadbalancer # specify the directory of the Dockerfile
container_name: nginx
restart: always
ports:
- "80:80" #specify ports forewarding
depends_on:
- frontend
- api
networks:
- genai_network
networks:
genai_network:
driver: bridge