-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (51 loc) · 1.32 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
44
45
46
47
48
49
50
51
52
53
54
55
version: "3.9"
services:
postgres:
image: postgres:16
restart: always
environment:
POSTGRES_USER: conduit
POSTGRES_PASSWORD: conduitpass
POSTGRES_DB: conduitdb
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U conduit -d conduitdb"]
interval: 5s
timeout: 5s
retries: 5
api:
build:
context: .
dockerfile: ConduitLLM.Http/Dockerfile
depends_on:
postgres:
condition: service_healthy
environment:
DB_PROVIDER: postgres
DB_CONNECTION_STRING: Host=postgres;Port=5432;Database=conduitdb;Username=conduit;Password=conduitpass
ASPNETCORE_URLS: http://+:8080
ASPNETCORE_ENVIRONMENT: Production
ports:
- "5000:8080"
restart: always
webui:
build:
context: .
dockerfile: ConduitLLM.WebUI/Dockerfile
depends_on:
- api
- postgres
environment:
DB_PROVIDER: postgres
DB_CONNECTION_STRING: Host=postgres;Port=5432;Database=conduitdb;Username=conduit;Password=conduitpass
ASPNETCORE_URLS: http://+:8080
ASPNETCORE_ENVIRONMENT: Production
API_BASE_URL: http://api:8080 # Configure WebUI to talk to the API service
ports:
- "5001:8080"
restart: always
volumes:
pgdata: