-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 953 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (40 loc) · 953 Bytes
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:
db:
image: postgres:16-alpine
environment:
POSTGRES_DB: agent_trust
POSTGRES_USER: agent_trust
POSTGRES_PASSWORD: agent_trust_dev
ports:
- "5555:5432"
volumes:
- ./db/init.sql:/docker-entrypoint-initdb.d/01-init.sql
- ./db/seed.sql:/docker-entrypoint-initdb.d/02-seed.sql
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U agent_trust"]
interval: 5s
timeout: 3s
retries: 5
api:
build:
context: ./apps/api
ports:
- "4100:4100"
environment:
DATABASE_URL: postgres://agent_trust:agent_trust_dev@db:5432/agent_trust
PORT: "4100"
depends_on:
db:
condition: service_healthy
observatory:
build:
context: ./apps/observatory
ports:
- "4173:4173"
environment:
VITE_API_URL: http://localhost:4100
depends_on:
- api
volumes:
pgdata: