20 lines
461 B
YAML
20 lines
461 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:
|
|
- /container/postgresql:/var/lib/postgresql/data:rw
|
|
ports:
|
|
- 5432:5432
|
|
restart: always
|
|
network_mode: "bridge"
|