From 241d798f9eb94b762b189d4893ed7ea22a53b98a Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Wed, 13 Jul 2022 13:40:48 -0700 Subject: [PATCH] #31 Update basic webapp template with new logging instrumentation --- server/README.md | 81 ++++++++++++++++++++++++++---------------------- 1 file changed, 44 insertions(+), 37 deletions(-) diff --git a/server/README.md b/server/README.md index 0e8d0c4..5ee62fa 100644 --- a/server/README.md +++ b/server/README.md @@ -66,42 +66,49 @@ SMTP_TLS=false ```yml version: '3' services: - : - image: - container_name: _ - user: "1000:1000" - restart: "no" - environment: - PUID: ${PUID} - PGID: ${PGID} - volumes: - - ${DOCKER_DATA}/:/path/to/data - labels: - - traefik.http.routers..rule=Host(`.jafner.net`) - - traefik.http.routers..tls.certresolver=lets-encrypt - - traefik.http.routers..middlewares= # available middlewares are available in homelab/server/config/traefik/config/middlewares.yaml - - traefik.http.services..loadbalancer.server.port= - networks: - - web - - - depends_on: - - landing_db - _db: - image: - container_name: _db - user: "1000:1000" - restart: "no" - networks: - - - environment: - PUID: ${PUID} - PGID: ${PGID} - volumes: - - ${DOCKER_DATA}/db:/var/lib/mysql - labels: - - traefik.enable=false + : + image: + container_name: _ + logging: + driver: loki + options: + loki-url: http://localhost:3100/loki/api/v1/push + loki-batch-size: "50" + loki-retries: "1" + loki-timeout: "2s" + user: "1000:1000" + restart: "no" + environment: + PUID: ${PUID} + PGID: ${PGID} + volumes: + - ${DOCKER_DATA}/:/path/to/data + labels: + - traefik.http.routers..rule=Host(`.jafner.net`) + - traefik.http.routers..tls.certresolver=lets-encrypt + - traefik.http.routers..middlewares= # available middlewares are available in homelab/server/config/traefik/config/middlewares.yaml + - traefik.http.services..loadbalancer.server.port= + networks: + - web + - + depends_on: + - landing_db + _db: + image: + container_name: _db + user: "1000:1000" + restart: "no" + networks: + - + environment: + PUID: ${PUID} + PGID: ${PGID} + volumes: + - ${DOCKER_DATA}/db:/var/lib/mysql + labels: + - traefik.enable=false networks: - web: - external: true - : + web: + external: true +: ```