-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (30 loc) · 914 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (30 loc) · 914 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
version: "3.9"
services:
db:
image: postgres:17
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-dev}
POSTGRES_DB: ${POSTGRES_DB:-hushreg}
POSTGRES_PORT: ${POSTGRES_PORT:-5432}
LANG: en_US.utf8
LC_ALL: en_US.utf8
volumes:
- postgres_data:/var/lib/postgresql/data
- ./sql_models/seed.sql:/docker-entrypoint-initdb.d/seed.sql
expose:
- "${POSTGRES_PORT:-5432}"
registry:
build: .
environment:
DATABASE_URL: postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-dev}@db:5432/${POSTGRES_DB:-hushreg}
HEALTH_TIMEOUT_MS: "3000"
healthcheck:
test: ["CMD-SHELL", "curl --fail http://localhost:8080/api/nodes || exit 1"]
interval: 10s
timeout: 5s
retries: 5
depends_on: [db]
ports: ["${REGISTRY_PORT:-8081}:8080"]
volumes:
postgres_data: