40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
services:
|
|
docmost:
|
|
build: .
|
|
image: ghcr.io/victorphan03/docmost:v1.0.3
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
environment:
|
|
APP_URL: 'http://localhost:3000'
|
|
APP_SECRET: '1a635aac7d7d6afb4c84291baa94ed43a7749d390a739f9e541e210d3dd33399'
|
|
DATABASE_URL: 'postgresql://docmost:STRONG_DB_PASSWORD@db:5432/docmost'
|
|
REDIS_URL: 'redis://redis:6379'
|
|
ports:
|
|
- "3000:3000"
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./data/docmost:/app/data/storage
|
|
|
|
db:
|
|
build: ./custom-images/db
|
|
image: ghcr.io/victorphan03/db:v1.0.3
|
|
environment:
|
|
POSTGRES_DB: docmost
|
|
POSTGRES_USER: docmost
|
|
POSTGRES_PASSWORD: STRONG_DB_PASSWORD
|
|
restart: unless-stopped
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- ./data/db_data:/var/lib/postgresql
|
|
|
|
redis:
|
|
build: ./custom-images/redis
|
|
image: ghcr.io/victorphan03/redis:v1.0.3
|
|
command: ["redis-server", "--appendonly", "yes", "--maxmemory-policy", "noeviction"]
|
|
restart: unless-stopped
|
|
ports:
|
|
- "6379:6379"
|
|
volumes:
|
|
- ./data/redis_data:/data |