-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 807 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (36 loc) · 807 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
version: '3.8'
services:
agent-os-kernel:
build: .
ports:
- "8080:8080"
environment:
- AOSK_LOG_LEVEL=INFO
- AOSK_STORAGE_BACKEND=postgresql
- POSTGRES_HOST=postgres
- POSTGRES_DB=aosk
- POSTGRES_USER=aosk
- POSTGRES_PASSWORD=secret
depends_on:
postgres:
condition: service_healthy
volumes:
- ./data:/app/data
restart: unless-stopped
postgres:
image: postgres:15-alpine
environment:
POSTGRES_DB=aosk
POSTGRES_USER=aosk
POSTGRES_PASSWORD=secret
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U aosk -d aosk"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data: