mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-03 18:36:22 +00:00
docmost
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,10 @@
|
||||
# Docmost
|
||||
VOL_PATH=/data
|
||||
DOCMOST_IMAGE=docmost/docmost:latest
|
||||
POSTGRES_IMAGE=postgres:16-alpine
|
||||
REDIS_IMAGE=redis:7-alpine
|
||||
DOCMOST_RESTART=unless-stopped
|
||||
DOCMOST_PORT=8000
|
||||
APP_URL=http://localhost:8000
|
||||
APP_SECRET=generate_a_long_random_string
|
||||
DB_PASSWORD=changeme
|
||||
Reference in New Issue
Block a user