-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
39 lines (37 loc) · 1.12 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
services:
postgres:
image: postgres:18
restart: unless-stopped
environment:
# Note: postgres:18 disallows superuser names starting with 'pg_'.
# The local dev superuser is 'atlas'; the database is still named 'pg_atlas'.
POSTGRES_USER: atlas
POSTGRES_PASSWORD: ${PG_ATLAS_POSTGRES_PASSWORD:-changeme}
POSTGRES_DB: pg_atlas
ports:
- "5432:5432"
volumes:
# postgres:18+ expects the mount at /var/lib/postgresql (not .../data);
# the server places its data in a major-version sub-directory automatically.
- pg_data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U atlas -d pg_atlas"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
api:
build: .
ports:
- "8000:8000"
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
volumes:
# Raw SBOM artifact store (local dev). Mount a host path so artifacts survive
# container restarts. In production, this is replaced by Storacha.
- ./artifact_store:/data/artifacts
volumes:
pg_data: