-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 1.08 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
40
41
services:
postgres:
image: postgres:15
environment:
POSTGRES_DB: ${POSTGRES_DB:-control_layer}
POSTGRES_USER: ${POSTGRES_USER:-control_layer}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-control_layer_password}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U control_layer -d control_layer"]
start_period: 1s
interval: 1s
timeout: 3s
retries: 10
control-layer:
image: ${IMAGE:-ghcr.io/doublewordai/control-layer:${TAG:-latest}}
pull_policy: ${PULL_POLICY:-always}
ports:
- "3001:3001"
environment:
- RUST_LOG={RUST_LOG:-info}
- DATABASE_URL=postgres://control_layer:control_layer_password@postgres:5432/control_layer
- DWCTL_SECRET_KEY=mysupersecretkey
volumes:
- ./config.yaml:/app/config.yaml:ro
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3001/healthz"]
start_period: 1s
interval: 100s
timeout: 3s
retries: 10
volumes:
postgres_data:
networks:
default:
driver: bridge