Sharkey Stack: add loki logging output
This commit is contained in:
parent
e138ad72b2
commit
a839c19e12
1 changed files with 20 additions and 0 deletions
|
@ -25,6 +25,10 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./files:/sharkey/files
|
- ./files:/sharkey/files
|
||||||
- ./.config:/sharkey/.config:ro
|
- ./.config:/sharkey/.config:ro
|
||||||
|
logging:
|
||||||
|
driver: loki
|
||||||
|
options:
|
||||||
|
loki-url: "${LOKI_URL:-http://localhost:3100/loki/api/v1/push}"
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -37,6 +41,10 @@ services:
|
||||||
test: "redis-cli ping"
|
test: "redis-cli ping"
|
||||||
interval: 5s
|
interval: 5s
|
||||||
retries: 20
|
retries: 20
|
||||||
|
logging:
|
||||||
|
driver: loki
|
||||||
|
options:
|
||||||
|
loki-url: "${LOKI_URL:-http://localhost:3100/loki/api/v1/push}"
|
||||||
|
|
||||||
db:
|
db:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -51,6 +59,10 @@ services:
|
||||||
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
|
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
|
||||||
interval: 5s
|
interval: 5s
|
||||||
retries: 20
|
retries: 20
|
||||||
|
logging:
|
||||||
|
driver: loki
|
||||||
|
options:
|
||||||
|
loki-url: "${LOKI_URL:-http://localhost:3100/loki/api/v1/push}"
|
||||||
|
|
||||||
|
|
||||||
### Only one of the below should be used.
|
### Only one of the below should be used.
|
||||||
|
@ -69,6 +81,10 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./meili_data:/meili_data
|
- ./meili_data:/meili_data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
logging:
|
||||||
|
driver: loki
|
||||||
|
options:
|
||||||
|
loki-url: "${LOKI_URL:-http://localhost:3100/loki/api/v1/push}"
|
||||||
|
|
||||||
# sonic:
|
# sonic:
|
||||||
# restart: unless-stopped
|
# restart: unless-stopped
|
||||||
|
@ -78,6 +94,10 @@ services:
|
||||||
# volumes:
|
# volumes:
|
||||||
# - ./sonic:/var/lib/sonic/store
|
# - ./sonic:/var/lib/sonic/store
|
||||||
# - ./sonic/config.cfg:/etc/sonic.cfg
|
# - ./sonic/config.cfg:/etc/sonic.cfg
|
||||||
|
# logging:
|
||||||
|
# driver: loki
|
||||||
|
# options:
|
||||||
|
# loki-url: "${LOKI_URL:-http://localhost:3100/loki/api/v1/push}"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
calcnet:
|
calcnet:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue