working traefik

This commit is contained in:
Oliver
2025-08-30 09:53:31 +02:00
parent 9726dc0060
commit 86acea94b9
29 changed files with 378 additions and 81 deletions

View File

@@ -5,4 +5,4 @@ echo "Server {{HOSTNAME}}"
export PS1="\[\e[32m\]\h:\w\$\[\e[0m\] "
df -h .
cd /4server

View File

@@ -20,7 +20,6 @@ services:
ports:
- 80:80
- 443:443
- 8080:8080
volumes:
- /run/docker.sock:/run/docker.sock:ro
- /4server/data/traefik/etc:/etc/traefik

View File

@@ -0,0 +1,23 @@
SERIAL ttyS0 115200
DEFAULT menu.c32
PROMPT 0
MENU TITLE Alpine/Linux Boot Menu
MENU HIDDEN
MENU AUTOBOOT Alpine will be booted automatically in # seconds.
TIMEOUT 100
LABEL virt
MENU LABEL Linux virt
LINUX vmlinuz-virt
INITRD initramfs-virt
APPEND root=LABEL=/ modules=sd-mod,usb-storage,ext4 console=ttyS0,115200n8 console=ttyAMA0,115200n8
LABEL lts
MENU DEFAULT
MENU LABEL Linux lts
LINUX vmlinuz-lts
INITRD initramfs-lts
APPEND root=LABEL=/ modules=sd-mod,usb-storage,ext4 console=ttyS0,115200n8 console=ttyAMA0,115200n8
MENU SEPARATOR

View File

@@ -50,18 +50,14 @@ firewall:
inbound:
- port: any #ping
proto: icmp
host: any
groups:
- admin
- port: 22 #GIT
proto: tcp
groups:
- admin
- ansible
- port: 8080
proto: tcp
groups:
-admin

View File

@@ -6,9 +6,9 @@ accesslog:
filePath: /var/log/traefik/access.log
api:
dashboard: true
dashboard: false
disableDashboardAd: true
insecure: true
insecure: false
entryPoints:
web:
@@ -29,9 +29,6 @@ entryPoints:
readTimeout: 0
writeTimeout: 0
idleTimeout: 42
# -- (Optional) Add custom Entrypoint
# custom:
# address: :8080
# -- Configure your CertificateResolver here...
certificatesResolvers:
@@ -85,16 +82,16 @@ http:
routers:
saopaulo-router:
rule: "Host(`dev.local`)"
service: saopaulo-service
api-router:
rule: "Host(`{{HOSTNAME}}.odoo4projects.com`)"
service: api-service
entryPoints:
- websecure
tls:
certResolver: production
services:
saopaulo-service:
api-service:
loadBalancer:
servers:
- url: "http://10.5.0.1:8888"