Files
mijn-docker-stacks/postgressql/docker-compose.yml
T

20 lines
463 B
YAML

services:
db:
container_name: PostgreSQL
image: postgres:17.6
mem_limit: 256m
cpu_shares: 768
healthcheck:
test: ["CMD", "pg_isready", "-q", "-d", "postgres", "-U", "postgres"]
environment:
POSTGRES_PASSWORD: 1qaz2wsx@
POSTGRES_DB: db
PUID: 1026
PGID: 100
volumes:
- /mnt/synoNFS/postgresql:/var/lib/postgresql/data:rw
ports:
- 5432:5432
restart: always
network_mode: "bridge"