Files
nas-compose/compose.base.yaml
2024-09-28 11:18:53 +02:00

27 lines
645 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'
# Service exposed via the reverse proxy
exposed-service:
extends: base-service
networks:
- reverse-proxy
labels:
traefik.enable: true
networks:
reverse-proxy:
external: true