Update Dockerfile

* Add volume to docker compose file
This commit is contained in:
Philipinho
2024-06-27 15:32:23 +01:00
parent e73293856b
commit 20c1a92885
2 changed files with 12 additions and 2 deletions
+4
View File
@@ -11,9 +11,12 @@ services:
APP_SECRET: 'REPLACE_WITH_LONG_SECRET'
DATABASE_URL: 'postgresql://postgres:password@db:5432/docmost?schema=public'
REDIS_URL: 'redis://redis:6379'
STORAGE_DRIVER: 'local'
ports:
- "3000:3000"
restart: unless-stopped
volumes:
- local_storage:/app/data/storage
db:
image: postgres:16-alpine
@@ -32,5 +35,6 @@ services:
- redis_data:/data
volumes:
local_storage:
db_data:
redis_data: