Add keep-file: true to loki driver

This commit is contained in:
Joey Hafner 2022-07-14 15:22:44 -07:00
parent cb051fa76f
commit 29bb9c150d
32 changed files with 54 additions and 0 deletions

View File

@ -76,6 +76,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
user: "1000:1000" user: "1000:1000"
restart: "no" restart: "no"
environment: environment:

View File

@ -45,6 +45,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
networks: networks:
authentik: authentik:
web: web:
@ -81,6 +82,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
networks: networks:
- authentik - authentik

View File

@ -10,6 +10,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
networks: networks:
- web - web
environment: environment:
@ -41,6 +42,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
networks: networks:
- web - web
environment: environment:
@ -71,6 +73,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
networks: networks:
- web - web
environment: environment:
@ -101,6 +104,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
networks: networks:
- web - web
environment: environment:
@ -130,6 +134,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
networks: networks:
- web - web
- monitoring - monitoring
@ -163,6 +168,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
networks: networks:
web: web:
tdarr: tdarr:
@ -206,6 +212,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
deploy: deploy:
resources: resources:
reservations: reservations:
@ -247,6 +254,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
networks: networks:
- web - web
environment: environment:

View File

@ -10,6 +10,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
environment: environment:
- PUID=1000 - PUID=1000
- PGID=1000 - PGID=1000
@ -34,6 +35,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
environment: environment:
- PUID=1000 - PUID=1000
- PGID=1000 - PGID=1000
@ -58,6 +60,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
environment: environment:
- PUID=1000 - PUID=1000
- PGID=1000 - PGID=1000
@ -82,6 +85,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
environment: environment:
- PUID=1000 - PUID=1000
- PGID=1000 - PGID=1000

View File

@ -10,6 +10,8 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
environment: environment:
- API_KEY=***REMOVED*** - API_KEY=***REMOVED***

View File

@ -10,6 +10,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
hostname: 'gitlab.jafner.net' hostname: 'gitlab.jafner.net'
networks: networks:
@ -99,6 +100,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
environment: environment:
- GODEBUG="x509ignoreCN=0" - GODEBUG="x509ignoreCN=0"
@ -118,6 +120,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
environment: environment:
- GODEBUG="x509ignoreCN=0" - GODEBUG="x509ignoreCN=0"

View File

@ -10,6 +10,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "unless-stopped" restart: "unless-stopped"
environment: environment:
- UID=1000 - UID=1000

View File

@ -10,6 +10,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
networks: networks:
- web - web
volumes: volumes:

View File

@ -11,6 +11,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
environment: environment:
WORDPRESS_DB_HOST: landing_db WORDPRESS_DB_HOST: landing_db

View File

@ -10,6 +10,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
environment: environment:
- TITLE=LibreSpeed@Jafner.net - TITLE=LibreSpeed@Jafner.net

View File

@ -11,6 +11,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
environment: environment:
- EULA=TRUE - EULA=TRUE
- MAX_MEMORY=12G - MAX_MEMORY=12G

View File

@ -11,6 +11,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
environment: environment:
- EULA=TRUE - EULA=TRUE
- MAX_MEMORY=8G - MAX_MEMORY=8G

View File

@ -11,6 +11,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
environment: environment:
- EULA=TRUE - EULA=TRUE
- MAX_MEMORY=6G - MAX_MEMORY=6G

View File

@ -10,6 +10,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
networks: networks:
- mc-router - mc-router

View File

@ -10,6 +10,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
environment: environment:
- EULA=TRUE - EULA=TRUE
- VERSION=1.19 - VERSION=1.19

View File

@ -67,6 +67,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
``` ```
NOTE: The batch size here is in lines for *only the selected container*. NOTE: The batch size here is in lines for *only the selected container*.

View File

@ -10,6 +10,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
networks: networks:
- monitoring - monitoring
@ -33,6 +34,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
user: "1000:1000" user: "1000:1000"
networks: networks:
- monitoring - monitoring
@ -60,6 +62,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
networks: networks:
- monitoring - monitoring
- web - web
@ -84,6 +87,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
networks: networks:
- monitoring - monitoring
@ -105,6 +109,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
command: export-for-prometheus command: export-for-prometheus
restart: "no" restart: "no"
networks: networks:
@ -125,6 +130,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
networks: networks:
- monitoring - monitoring
@ -145,6 +151,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
networks: networks:
- monitoring - monitoring

View File

@ -10,6 +10,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
user: 1000:1000 user: 1000:1000
networks: networks:
- web - web

View File

@ -11,6 +11,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
environment: environment:
WORDPRESS_DB_HOST: nvgm_db WORDPRESS_DB_HOST: nvgm_db

View File

@ -11,6 +11,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
networks: networks:
web: web:
peertube: peertube:

View File

@ -10,6 +10,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
environment: environment:
PUID: ${PUID} PUID: ${PUID}

View File

@ -10,6 +10,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
deploy: deploy:
resources: resources:
@ -59,6 +60,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
networks: networks:
- web - web
@ -85,6 +87,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
environment: environment:
- PUID=1000 - PUID=1000

View File

@ -10,6 +10,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
command: -H unix:///var/run/docker.sock command: -H unix:///var/run/docker.sock
networks: networks:

View File

@ -11,6 +11,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
environment: environment:
WORDPRESS_DB_HOST: portfolio_db WORDPRESS_DB_HOST: portfolio_db

View File

@ -10,6 +10,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
networks: networks:
- web - web
restart: "no" restart: "no"

View File

@ -10,6 +10,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
networks: networks:
- send - send

View File

@ -10,6 +10,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
ports: ports:
- 23450:22/tcp - 23450:22/tcp

View File

@ -10,6 +10,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro

View File

@ -11,6 +11,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
networks: networks:
- web - web

View File

@ -10,6 +10,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
environment: environment:
- PUID=1000 - PUID=1000

View File

@ -14,6 +14,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
restart: "no" restart: "no"
volumes: volumes:
- ${DOCKER_DATA}/data:/app/data - ${DOCKER_DATA}/data:/app/data

View File

@ -11,6 +11,7 @@ services:
loki-batch-size: "50" loki-batch-size: "50"
loki-retries: "1" loki-retries: "1"
loki-timeout: "2s" loki-timeout: "2s"
keep-file: "true"
env_file: env_file:
- .env - .env
ports: ports: