1
0
Files
docker-compose-templates/services/postgres.yml
T
2025-12-01 12:12:16 +01:00

19 lines
399 B
YAML

---
services:
postgres:
container_name: postgres
image: postgres:latest
networks:
public:
ipv4_address: 192.168.240.25
volumes:
- "${DOCKER_STORAGE_PATH}/postgres:/var/lib/postgresql/data"
restart: unless-stopped
healthcheck:
interval: 30s
retries: 5
start_period: 20s
test:
- CMD-SHELL
- pg_isready
timeout: 5s