-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcompose.yaml
More file actions
33 lines (31 loc) · 882 Bytes
/
Copy pathcompose.yaml
File metadata and controls
33 lines (31 loc) · 882 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
# Development-only stack. The credentials below are local defaults, not deployable secrets.
services:
postgres:
image: postgres:17
environment:
POSTGRES_USER: opensdl
POSTGRES_PASSWORD: opensdl
POSTGRES_DB: opensdl
healthcheck:
test: ["CMD-SHELL", "pg_isready -U opensdl"]
interval: 5s
timeout: 5s
retries: 10
volumes:
- opensdl-postgres:/var/lib/postgresql/data
api:
build: .
environment:
OPENSDL_MANIFEST: examples/simulated-color-mixing/opensdl.yaml
OPENSDL_DATABASE_URL: postgresql+psycopg://opensdl:opensdl@postgres:5432/opensdl
OPENSDL_ARTIFACT_ROOT: /data/artifacts
ports:
- "127.0.0.1:8000:8000"
depends_on:
postgres:
condition: service_healthy
volumes:
- opensdl-artifacts:/data/artifacts
volumes:
opensdl-postgres:
opensdl-artifacts: