services: face-lock: build: context: . image: face-lock:local ports: - "${FACE_LOCK_PUBLISHED_PORT:-8100}:8000" env_file: - path: .env required: false environment: PORT: 8000 FACE_LOCK_HOST: 0.0.0.0 healthcheck: test: ["CMD", "python", "-c", "from urllib.request import urlopen; raise SystemExit(0 if urlopen('http://127.0.0.1:8000/health', timeout=3).getcode() == 200 else 1)"] interval: 30s timeout: 5s retries: 3 start_period: 20s init: true restart: unless-stopped read_only: true tmpfs: - /tmp security_opt: - no-new-privileges:true cap_drop: - ALL