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
33 lines (30 loc) · 814 Bytes
/
Copy pathcompose-postgres.yml
File metadata and controls
33 lines (30 loc) · 814 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
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
- ./scripts:/scripts
- ./dataset_preprocessing:/dataset_preprocessing
- ${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