Introduce unbound for caching dns and move pihole to macvlan. Use "lan" as local domain name.

This commit is contained in:
2021-11-09 06:13:19 +01:00
parent 9dea2f7766
commit b6ca572067
9 changed files with 55 additions and 48 deletions

View File

@@ -39,7 +39,7 @@ services:
labels:
- "traefik.enable=true"
- "traefik.http.routers.gitea-web.entrypoints=web"
- "traefik.http.routers.gitea-web.rule=Host(`gitea.localhost`) || Host(`gitea.local`)"
- "traefik.http.routers.gitea-web.rule=Host(`gitea.lan`)"
- "traefik.http.services.gitea-web.loadbalancer.server.port=3000"
nginx-kimai:
@@ -49,7 +49,7 @@ services:
labels:
- "traefik.enable=true"
- "traefik.http.routers.kimai.entrypoints=web"
- "traefik.http.routers.kimai.rule=Host(`kimai.localhost`)"
- "traefik.http.routers.kimai.rule=Host(`kimai.lan`)"
- "traefik.http.services.kimai.loadbalancer.server.port=80"
depends_on:
- kimai
@@ -68,7 +68,7 @@ services:
- ADMINMAIL=christiansteinle@arcor.de
- ADMINPASS=ZovJdPamHwSNCGTcOPDb
- DATABASE_URL=mysql://kimai:xXW5dnQoMpAmdXrQgUgU@mysql8/kimai
- TRUSTED_HOSTS=kimai.localhost
- TRUSTED_HOSTS=kimai.lan
networks:
- internal
volumes:

View File

@@ -1,7 +1,7 @@
server {
listen 80;
index index.php;
server_name kimai.localhost;
server_name kimai.lan;
root /opt/kimai/public;
# cache static asset files