-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (54 loc) · 1.24 KB
/
docker-compose.yml
File metadata and controls
58 lines (54 loc) · 1.24 KB
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
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: aiproject
POSTGRES_PASSWORD: aiproject
POSTGRES_DB: aiproject
ports:
- "5433:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U aiproject" ]
interval: 5s
timeout: 5s
retries: 5
user_service:
build:
context: ./apps/user_service
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
- POSTGRES_URI=postgresql://aiproject:aiproject@postgres:5432
- POSTGRES_DATABASE=aiproject
- POSTGRES_IS_SSL_DISABLED=true
- NODE_ENV=production
depends_on:
postgres:
condition: service_healthy
agent_service:
build:
context: ./apps/agent_service
dockerfile: Dockerfile
ports:
- "5001:5001"
environment:
- DATABASE_URL=postgresql://aiproject:aiproject@postgres:5432/aiproject
env_file:
- ./apps/agent_service/.env
depends_on:
postgres:
condition: service_healthy
web:
build:
context: .
dockerfile: apps/web/Dockerfile
ports:
- "5173:80"
depends_on:
- user_service
- agent_service
volumes:
pgdata: