Add Docker Compose configuration for PostgreSQL

This commit is contained in:
MisticDruid authored and GitHub committed 2025-11-26 02:54:42 +01:00
1 parent 18bbc298f4
commit 593cd38dbd
1 file changed
+19
+19
View File
@@ -0,0 +1,19 @@
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"