Use PostgreSQL instead of Sqlite

This commit is contained in:
Joakim Hellsén 2025-09-05 00:07:22 +02:00
commit c72533c14f
4 changed files with 71 additions and 15 deletions

23
compose.yml Normal file
View file

@ -0,0 +1,23 @@
services:
ttvdrops_db:
image: postgres:18beta3
container_name: ttvdrops_db
restart: unless-stopped
environment:
POSTGRES_USER: ttvdrops
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD?You must set POSTGRES_PASSWORD}
POSTGRES_DB: ttvdrops
PGDATA: /data
command: postgres -c config_file=/config/postgresql.conf
shm_size: 5g
ports:
- "5432:5432"
volumes:
- /mnt/Docker/Data/ttvdrops/postgresql/data:/data
- /mnt/Docker/Data/ttvdrops/postgresql/config:/config
networks:
- ttvdrops
networks:
ttvdrops:
driver: bridge