This commit is contained in:
2026-07-02 21:47:33 -07:00
parent f4ada40858
commit 8a12f3d293
2 changed files with 57 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
services:
docmost:
image: ${DOCMOST_IMAGE:-docmost/docmost:latest}
restart: ${DOCMOST_RESTART:-unless-stopped}
depends_on:
db:
condition: service_started
redis:
condition: service_started
environment:
- APP_URL=${APP_URL:-http://localhost:8000}
- APP_SECRET=${APP_SECRET}
- DATABASE_URL=postgresql://docmost:${DB_PASSWORD:-changeme}@db:5432/docmost?schema=public
- REDIS_URL=redis://redis:6379
ports:
- "${DOCMOST_PORT:-8000}:3000"
volumes:
- ${VOL_PATH:-/data}/docmost/storage:/app/data/storage
networks:
- proxy
- docmost_internal
db:
image: ${POSTGRES_IMAGE:-postgres:16-alpine}
restart: ${DOCMOST_RESTART:-unless-stopped}
environment:
- POSTGRES_DB=docmost
- POSTGRES_USER=docmost
- POSTGRES_PASSWORD=${DB_PASSWORD:-changeme}
volumes:
- ${VOL_PATH:-/data}/docmost/db:/var/lib/postgresql/data
networks:
- docmost_internal
redis:
image: ${REDIS_IMAGE:-redis:7-alpine}
restart: ${DOCMOST_RESTART:-unless-stopped}
volumes:
- ${VOL_PATH:-/data}/docmost/redis:/data
networks:
- docmost_internal
networks:
docmost_internal:
driver: bridge
proxy:
external: true