# Gateway RAR AUTOPASS — un container API + un container worker, acelasi image, # acelasi volum SQLite persistent (plan.md sect. 4 + 9). restart: always pe ambele. services: api: build: . command: uvicorn app.main:app --host 0.0.0.0 --port 8000 ports: - "8000:8000" volumes: - autopass-data:/data environment: AUTOPASS_DB_PATH: /data/autopass.db AUTOPASS_RAR_ENV: test restart: always healthcheck: test: ["CMD", "python", "-c", "import urllib.request,sys; sys.exit(0 if urllib.request.urlopen('http://localhost:8000/healthz').status==200 else 1)"] interval: 30s timeout: 5s retries: 3 worker: build: . command: python -m app.worker volumes: - autopass-data:/data environment: AUTOPASS_DB_PATH: /data/autopass.db AUTOPASS_RAR_ENV: test # Send dezactivat by default; activeaza pentru proba end-to-end. AUTOPASS_WORKER_SEND_ENABLED: "false" restart: always depends_on: - api volumes: autopass-data: