21 lines
503 B
YAML
21 lines
503 B
YAML
services:
|
|
calendar:
|
|
build: .
|
|
ports:
|
|
- "4000:4000"
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- HOST=0.0.0.0
|
|
- RUST_LOG=info
|
|
volumes:
|
|
# Mount service account key if using file path
|
|
- ./service_account_key.json:/app/secrets/service_account_key.json:ro
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl -f http://localhost:4000/api/v1/health || exit 1"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|