2024-06-07 17:21:19 +01:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
docmost:
|
2024-06-28 17:29:46 +01:00
|
|
|
image: docmost/docmost:latest
|
2024-06-07 17:21:19 +01:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
environment:
|
|
|
|
APP_URL: 'http://localhost:3000'
|
|
|
|
APP_SECRET: 'REPLACE_WITH_LONG_SECRET'
|
2024-06-29 13:00:10 +01:00
|
|
|
DATABASE_URL: 'postgresql://docmost:STRONG_DB_PASSWORD@db:5432/docmost?schema=public'
|
2024-06-07 17:21:19 +01:00
|
|
|
REDIS_URL: 'redis://redis:6379'
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
restart: unless-stopped
|
2024-06-27 15:32:23 +01:00
|
|
|
volumes:
|
2024-06-28 17:29:46 +01:00
|
|
|
- docmost:/app/data/storage
|
2024-06-07 17:21:19 +01:00
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:16-alpine
|
|
|
|
environment:
|
|
|
|
POSTGRES_DB: docmost
|
2024-06-29 13:00:10 +01:00
|
|
|
POSTGRES_USER: docmost
|
|
|
|
POSTGRES_PASSWORD: STRONG_DB_PASSWORD
|
2024-06-07 17:21:19 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- db_data:/var/lib/postgresql/data
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:7.2-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- redis_data:/data
|
|
|
|
|
|
|
|
volumes:
|
2024-06-28 17:29:46 +01:00
|
|
|
docmost:
|
2024-06-07 17:21:19 +01:00
|
|
|
db_data:
|
|
|
|
redis_data:
|