Skip to content

High performance self-hosted photo and video management solution.

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

Zack Pollarda6c4bd155590
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index f2b1a20321..69b32749c5 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -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: