-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.postgres.yml
More file actions
36 lines (33 loc) · 1.07 KB
/
Copy pathdocker-compose.postgres.yml
File metadata and controls
36 lines (33 loc) · 1.07 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
36
# Collectify — PostgreSQL override
#
# Use alongside docker-compose.yml:
# docker compose -f docker-compose.yml -f docker-compose.postgres.yml up
#
# Or for local builds:
# docker compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.postgres.yml up --build
services:
collectify:
depends_on:
postgres:
condition: service_healthy
environment:
Collectify__Database__Provider: postgres
Collectify__Database__ConnectionString: >-
Host=postgres;Port=5432;Database=collectify;Username=collectify;Password=${POSTGRES_PASSWORD:-secret}
postgres:
image: postgres:17-alpine
container_name: collectify-postgres
restart: unless-stopped
environment:
POSTGRES_DB: collectify
POSTGRES_USER: collectify
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-secret}
volumes:
- collectify-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U collectify -d collectify"]
interval: 5s
timeout: 3s
retries: 10
volumes:
collectify-postgres-data: