Fixed all that traefik configuration stuff. Manual disable of traefik in the containers that don't use it.

This commit is contained in:
whitney 2023-12-20 13:58:20 -08:00
parent ba8c7a4206
commit 2fb49d6ff4
4 changed files with 8 additions and 7 deletions

View File

@ -36,7 +36,8 @@ Also modify the following:
Then start containers again. Then start containers again.
5. Go to xxx.xxx.xx.xxx:3300 and fill out initial config. 5. Go to xxx.xxx.xx.xxx:3300 and fill out initial config. Everything should match up to default values.
Some things that were weird: Some things that were weird:

View File

@ -35,7 +35,7 @@ services:
- traefik.http.routers.gitea.rule=Host(`[[SITE_URL]]`) - traefik.http.routers.gitea.rule=Host(`[[SITE_URL]]`)
- traefik.http.routers.gitea.tls=true - traefik.http.routers.gitea.tls=true
- traefik.http.routers.gitea.tls.certresolver=lets-encrypt - traefik.http.routers.gitea.tls.certresolver=lets-encrypt
- traefik.http.services.gitea.loadbalancer.server.port=3000 - traefik.http.services.gitea.loadbalancer.server.port=[[HOST_PORT]]
- traefik.port=[[HOST_PORT]] - traefik.port=[[HOST_PORT]]
database: database:

View File

@ -30,7 +30,7 @@ services:
- traefik.http.routers.grafana.rule=Host(`[[SITE_URL]]`) - traefik.http.routers.grafana.rule=Host(`[[SITE_URL]]`)
- traefik.http.routers.grafana.tls=true - traefik.http.routers.grafana.tls=true
- traefik.http.routers.grafana.tls.certresolver=lets-encrypt - traefik.http.routers.grafana.tls.certresolver=lets-encrypt
- traefik.http.services.grafana.loadbalancer.server.port=3000 - traefik.http.services.grafana.loadbalancer.server.port=[[HOST_PORT]]
- traefik.port=[[HOST_PORT]] - traefik.port=[[HOST_PORT]]
depends_on: depends_on:
- node_exporter - node_exporter

View File

@ -1,16 +1,16 @@
version: "3" version: "3"
networks: networks:
traefik-network: traefik_traefik-network:
external: true
services: services:
traefik: traefik:
image: traefik:v2.9 image: traefik:v2.9
container_name: traefik container_name: traefik
restart: always restart: always
networks: networks:
- traefik-network - traefik_traefik-network
ports: ports:
- 80:80 - 80:80
- 8080:8080 - 8080:8080
@ -25,7 +25,7 @@ services:
image: traefik/whoami image: traefik/whoami
container_name: whoami_traefik container_name: whoami_traefik
networks: networks:
- traefik-network - traefik_traefik-network
labels: labels:
- traefik.http.routers.whoami.rule=Host(`whoami.whitney.rip`) - traefik.http.routers.whoami.rule=Host(`whoami.whitney.rip`)
- traefik.http.routers.whoami.tls=true - traefik.http.routers.whoami.tls=true