services: | |
webserver: | |
image: hhschu/elna | |
pull_policy: always | |
security_opt: | |
- "no-new-privileges:true" | |
cap_drop: | |
- ALL | |
env_file: | |
- .env | |
command: | |
- fastapi | |
- run | |
- --port=80 | |
- app/main.py | |
restart: "unless-stopped" | |
healthcheck: | |
test: ["CMD-SHELL", "curl -f http://localhost:80/health || exit 1"] | |
interval: 5m | |
start_period: 30s | |
start_interval: 5s | |