e64e67947c
Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
751 B
YAML
33 lines
751 B
YAML
services:
|
|
viewer:
|
|
build: .
|
|
ports:
|
|
- "5000:5000"
|
|
environment:
|
|
DATA_DIR: /data
|
|
TRUST_PROXY: "1"
|
|
DISABLE_LOCAL_VIEWER: "1"
|
|
PREFERRED_URL_SCHEME: https
|
|
MAX_UPLOAD_MB: "10"
|
|
RATE_LIMIT_VIEWER_CREATE: "5 per minute"
|
|
RATE_LIMIT_IMPORT: "20 per hour"
|
|
volumes:
|
|
- viewer-data:/data
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:5000/')"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 15s
|
|
# Attach to your nginx Proxy Manager network (uncomment and set name):
|
|
# networks:
|
|
# - npm
|
|
|
|
volumes:
|
|
viewer-data:
|
|
|
|
# networks:
|
|
# npm:
|
|
# external: true
|