21 lines
456 B
YAML
21 lines
456 B
YAML
services:
|
|
storage:
|
|
image: "ghcr.io/marcopedone/go_fs:latest"
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
PORT: 8080
|
|
AUTH_TOKEN: ${STORAGE_TOKEN}
|
|
pull_policy: "always"
|
|
volumes:
|
|
- storage_data:/app/storage
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s
|
|
|
|
volumes:
|
|
storage_data:
|