services: yrtv: build: context: . dockerfile: Dockerfile image: superjacky6/yrtv:2.0.0-beta container_name: yrtv restart: unless-stopped cap_drop: - ALL security_opt: - no-new-privileges:true env_file: - .env environment: YRTV_DATA_DIR: /data PORT: 5000 ports: - "${YRTV_PORT:-5001}:5000" volumes: - "${YRTV_DATA_PATH:-./runtime-data}:/data" healthcheck: test: - CMD - python - -c - "import urllib.request; urllib.request.urlopen('http://127.0.0.1:5000/healthz', timeout=3)" interval: 30s timeout: 5s start_period: 20s retries: 3