Spaces:
Sleeping
Sleeping
| services: | |
| app: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile | |
| image: agent-pdf:latest | |
| container_name: agent-pdf | |
| ports: | |
| - "8001:8001" | |
| restart: unless-stopped | |
| zrok: | |
| image: openziti/zrok | |
| container_name: zrok-tunnel | |
| restart: unless-stopped | |
| depends_on: | |
| - app | |
| user: root | |
| environment: | |
| ZROK_ENABLE_TOKEN: ${ZROK_ENABLE_TOKEN:?Set ZROK_ENABLE_TOKEN in .env or environment} | |
| entrypoint: ["/bin/sh", "-lc"] | |
| command: | |
| - 'zrok status | grep -q "Account Token" || zrok enable --headless "$ZROK_ENABLE_TOKEN"; exec zrok share public http://app:8001 --headless' | |