26 lines
648 B
YAML
26 lines
648 B
YAML
|
|
services:
|
||
|
|
notediscovery:
|
||
|
|
build: .
|
||
|
|
container_name: notediscovery
|
||
|
|
ports:
|
||
|
|
- "8000:8000"
|
||
|
|
volumes:
|
||
|
|
# Persist notes and data (inside 'notes' folder)
|
||
|
|
- ./data:/app/data
|
||
|
|
# Custom plugins
|
||
|
|
- ./plugins:/app/plugins
|
||
|
|
# Custom themes
|
||
|
|
- ./themes:/app/themes
|
||
|
|
# Custom config (optional)
|
||
|
|
- ./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
|
||
|
|
|