-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
34 lines (32 loc) · 902 Bytes
/
docker-compose.yaml
File metadata and controls
34 lines (32 loc) · 902 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
34
services:
postgres:
image: postgres:16
container_name: permit-gateway-postgres
restart: unless-stopped
environment:
POSTGRES_DB: permit_gateway
POSTGRES_USER: permit_user
POSTGRES_PASSWORD: permit_pass
# Optional tuning for dev; uncomment if you need locale/encoding:
# POSTGRES_INITDB_ARGS: "--encoding=UTF8 --lc-collate=C --lc-ctype=C"
ports:
- "5433:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U permit_user -d permit_gateway" ]
interval: 5s
timeout: 5s
retries: 12
pgadmin:
image: dpage/pgadmin4
restart: unless-stopped
environment:
PGADMIN_DEFAULT_EMAIL: admin@example.com
PGADMIN_DEFAULT_PASSWORD: supersecret
ports: [ "5050:80" ]
depends_on:
postgres:
condition: service_healthy
volumes:
pgdata: