-
-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathdocker-compose.db-postgres.yml
More file actions
39 lines (36 loc) · 987 Bytes
/
docker-compose.db-postgres.yml
File metadata and controls
39 lines (36 loc) · 987 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
35
36
37
38
39
# PostgreSQL database profile for Wheels development
#
# Usage:
# docker compose -f docker-compose.dev.yml -f docker-compose.db-postgres.yml up
#
# Adds a PostgreSQL 18 service and configures the "wheels-dev" datasource
# to connect to it automatically.
services:
app:
depends_on:
postgres:
condition: service_healthy
environment:
- BOX_SERVER_CFCONFIGFILE=tools/docker/dev/cfconfig-postgres.json
postgres:
image: postgres:18
restart: unless-stopped
environment:
POSTGRES_USER: wheelstestdb
POSTGRES_PASSWORD: wheelstestdb
POSTGRES_DB: wheelstestdb
POSTGRES_INITDB_ARGS: --auth-host=md5
ports:
- "${WHEELS_POSTGRES_PORT:-5433}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U wheelstestdb"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- wheels-dev
volumes:
postgres_data: