homelab-codex-ws/services/joplin/service.yaml

32 lines
650 B
YAML
Raw Permalink Normal View History

service:
name: joplin
owner_node: vps
exposure: tailscale-internal
dependencies:
- db
ports:
- container: 22300
host: 22300
protocol: tcp
bind: 127.0.0.1
healthcheck:
type: http
endpoint: http://localhost:22300/api/ping
interval: 30s
timeout: 10s
retries: 3
restart_policy: unless-stopped
persistence:
paths:
- volume:joplin_postgres_data # Joplin notes DB
runtime:
env_file: /opt/homelab/config/joplin/.env
env_vars:
- APP_BASE_URL
- APP_PORT
- DB_CLIENT
- POSTGRES_HOST
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB