-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (70 loc) · 1.51 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: "3.9"
services:
pgvector:
image: ankane/pgvector
ports:
- "5432:5432"
env_file:
- ./.env.prod
volumes:
- pgdata:/var/lib/postgresql/data/
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 15s
timeout: 5s
couch_server:
build:
context: ./couch_server/
dockerfile: Dockerfile
restart: always
ports:
- "5984:5984"
env_file:
- ./.env.prod
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5984/_up"]
interval: 15s
timeout: 5s
volumes:
- couchdb:/opt/couchdb/data
ai_service:
build:
context: ./ai_service/
dockerfile: Dockerfile
ports:
- "8000:8000"
env_file:
- ./.env.prod
depends_on:
pgvector:
condition: service_healthy
volumes:
- ./ai_service:/code/
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/"]
interval: 15s
timeout: 5s
retries: 5
app_gateway:
build:
context: ./app_gateway/
dockerfile: Dockerfile
ports:
- "8090:8090"
env_file:
- ./.env.prod
depends_on:
ai_service:
condition: service_healthy
couch_server:
condition: service_healthy
volumes:
- ./app_gateway/config:/app/config
- ./app_gateway/couch:/app/couch
- ./app_gateway/hooks:/app/hooks
- ./app_gateway/migrations:/app/migrations
- pbdata:/app/pb_data
volumes:
couchdb:
pbdata:
pgdata: