chore: update docker-compose to add storage type configuration (#18415)

This commit is contained in:
Zack Pollard 2025-05-21 16:46:55 +01:00 committed by GitHub
parent a02fe89ec9
commit a6c4bd1555
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,11 +62,11 @@ services:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
# Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
# DB_STORAGE_TYPE: 'HDD'
volumes:
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
# change ssd below to hdd if you are using a hard disk drive or other slow storage
command: postgres -c config_file=/etc/postgresql/postgresql.ssd.conf
restart: always
volumes: