feat(db): support postgresql database (#3643)

Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
This commit is contained in:
Yuichi Nakai
2025-08-30 03:30:03 +09:00
committed by GitHub
parent a4aa2aea90
commit 5168cba8e4
22 changed files with 3603 additions and 32 deletions

View File

@@ -26,5 +26,29 @@ services:
volumes:
- mysql_data:/var/lib/mysql
postgresql:
image: postgres
restart: always
# set shared memory limit when using docker compose
shm_size: 128mb
# or set shared memory limit when deploy via swarm stack
#volumes:
# - type: tmpfs
# target: /dev/shm
# tmpfs:
# size: 134217728 # 128*2^20 bytes = 128Mb
environment:
POSTGRES_PASSWORD: homarr
POSTGRES_USER: homarr
POSTGRES_DB: homarrdb
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- postgresql_data:/var/lib/postgresql/data
ports:
- 5432:5432
# if already run PostgreSQL, change port number to use container's service
# - 2345:5432
volumes:
mysql_data:
mysql_data:
postgresql_data: