-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 930 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (43 loc) · 930 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
44
45
46
47
name: shieldkid
services:
app:
build:
context: .
dockerfile: docker/Dockerfile
ports:
- "3000:3000"
env_file: .env
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
postgres:
image: postgres:17-alpine
environment:
POSTGRES_USER: shieldkid
POSTGRES_PASSWORD: shieldkid
POSTGRES_DB: shieldkid
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U shieldkid"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
age-ai:
build:
context: ./services/age-ai
ports:
- "8100:8100"
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8100/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
volumes:
pgdata: