-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (55 loc) · 1.13 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
56
57
58
59
services:
# TODO use secrets for confidential variables in .env file
backend:
build:
context: .
dockerfile: backend/Dockerfile
ports:
- "${PORT}:${PORT}"
volumes:
- ./.env:/app/.env
- ./.env.local:/app/.env.local
environment:
- GO_ENV=${GO_ENV:-production}
depends_on:
embedding-service:
condition: service_healthy
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "${FRONTEND_PORT}:3000"
environment:
- PORT=3000
volumes:
- ./.env:/app/.env
depends_on:
- backend
admin:
build:
context: ./admin
dockerfile: Dockerfile
ports:
- "${ADMIN_PORT}:3000"
environment:
- PORT=3000
volumes:
- ./.env:/app/.env
depends_on:
- backend
embedding-service:
build:
context: ./embedding-service
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
- ./.env:/app/.env
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8000/health" ]
interval: 30s
timeout: 10s
retries: 3
volumes:
pgdata: