Use PostgreSQL instead of Sqlite
This commit is contained in:
parent
a7a99ac0a8
commit
c72533c14f
4 changed files with 71 additions and 15 deletions
23
compose.yml
Normal file
23
compose.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue