-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (34 loc) · 1.16 KB
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (34 loc) · 1.16 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
# ============================================================
# TransBank — local dev infrastructure
# ------------------------------------------------------------
# Postgres 16 for the ledger. Start with:
# docker compose up -d
# Stop with:
# docker compose down
# Wipe data:
# docker compose down -v
# ============================================================
services:
postgres:
image: postgres:16
container_name: transbank-postgres
restart: unless-stopped
environment:
POSTGRES_DB: transbank
POSTGRES_USER: transbank
POSTGRES_PASSWORD: transbank_dev
ports:
# Host 5433 → container 5432. 5433 avoids collision with a native Postgres
# install on the host (which is what's currently answering 5432). The
# container still listens on 5432 internally — only the published host
# port differs. Update appsettings.Development.json Port to match.
- "5433:5432"
volumes:
- transbank_pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U transbank -d transbank"]
interval: 5s
timeout: 3s
retries: 10
volumes:
transbank_pgdata: