All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 41s
27 lines
494 B
YAML
27 lines
494 B
YAML
# LiteFS configuration for Navidrome
|
|
fuse:
|
|
dir: "/litefs"
|
|
|
|
data:
|
|
dir: "/var/lib/litefs"
|
|
|
|
# Use Consul for leader election
|
|
lease:
|
|
type: "consul"
|
|
candidate: true
|
|
promote: true
|
|
advertise-url: "http://${ADVERTISE_IP}:20202"
|
|
consul:
|
|
url: "${CONSUL_URL}"
|
|
key: "${LITEFS_CONSUL_KEY}"
|
|
ttl: "30s"
|
|
lock-delay: "5s"
|
|
|
|
# Internal HTTP API for replication
|
|
http:
|
|
addr: "0.0.0.0:20202"
|
|
|
|
# Commands to run only on the primary node.
|
|
exec:
|
|
- cmd: "/usr/local/bin/entrypoint.sh"
|