NoteDiscovery/docker-compose.yml

26 lines
704 B
YAML
Raw Normal View History

2025-11-05 16:48:41 +00:00
services:
notediscovery:
build: .
container_name: notediscovery
ports:
- "8000:8000"
volumes:
# Persist notes and data
2025-11-05 16:48:41 +00:00
- ./data:/app/data
# Custom plugins
- ./plugins:/app/plugins
# Custom themes (REQUIRED - must contain theme .css files)
2025-11-05 16:48:41 +00:00
- ./themes:/app/themes
# Config file (REQUIRED - must exist as a file, not directory!)
2025-11-05 16:48:41 +00:00
- ./config.yaml:/app/config.yaml
restart: unless-stopped
environment:
- TZ=UTC
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 60s
timeout: 3s
retries: 3
start_period: 5s