forked from ubc-provenance/PIDSMaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose-postgres.yml
More file actions
32 lines (29 loc) · 768 Bytes
/
compose-postgres.yml
File metadata and controls
32 lines (29 loc) · 768 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
services:
postgres:
image: postgres:17
container_name: postgres
networks:
- shared_network
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- "${DOCKER_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./postgres/init-create-empty-databases.sh:/docker-entrypoint-initdb.d/init-create-empty-databases.sh
- ./settings/scripts:/scripts
- ${INPUT_DIR:-/data}:/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
networks:
shared_network:
name: shared_network
labels:
com.docker.compose.network: shared_network
volumes:
postgres_data:
name: postgres_data