Files
nas-compose/compose.base.yaml
2024-09-29 15:05:51 +02:00

29 lines
685 B
YAML

services:
# All services should at least use this
base-service:
# Always restart unless explicitly stopped
restart: unless-stopped
# Send the logs to a Loki instance with ability to fail
logging:
driver: loki
options:
loki-url: http://${NASCOMPOSE_MACVLAN_LOKI_IP?}:3100/loki/api/v1/push
loki-retries: 2
loki-max-backoff: 800ms
loki-timeout: 1s
keep-file: true
max-size: 20m
max-file: 5
# Service exposed via the reverse proxy
exposed-service:
extends: base-service
networks:
- reverse-proxy
labels:
traefik.enable: true
networks:
reverse-proxy:
external: true