-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (30 loc) · 978 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (30 loc) · 978 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
# Copyright (c) Microsoft Corporation.
# Licensed under the PostgreSQL License.
services:
postgres:
image: pg_durable_postgres:latest
# To rebuild: docker build --no-cache -t pg_durable_postgres:latest .
container_name: pg_durable
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: pg_durable
ports:
- "5433:5432" # Use 5433 to avoid conflict with local PostgreSQL
volumes:
- pg_durable_data:/var/lib/postgresql/data
# Mount duroxide SQLite store (optional, for persistence across container restarts)
- ./data:/var/lib/postgresql/duroxide
command: >
postgres
-c shared_preload_libraries=pg_durable
-c pg_durable.database=pg_durable
-c log_statement=all
-c log_destination=stderr
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d pg_durable"]
interval: 10s
timeout: 5s
retries: 5
volumes:
pg_durable_data: