diff --git a/core/docker-compose.yml b/core/docker-compose.yml index 7eb1d96..271fded 100644 --- a/core/docker-compose.yml +++ b/core/docker-compose.yml @@ -28,14 +28,15 @@ services: traefik: image: traefik:latest container_name: traefik + network_mode: host cpus: 1.0 mem_limit: "1024m" mem_reservation: "128m" restart: always - ports: - - "80:80" # HTTP - - "443:443" # HTTPS - - "888:8080" # Traefik Dashboard (optional, password-protect in production!) + #ports: + # - "80:80" # HTTP + # - "443:443" # HTTPS + # - "888:8080" # Traefik Dashboard (optional, password-protect in production!) command: - "--api.dashboard=true" - "--api.insecure=true" # Remove or secure in prod @@ -67,12 +68,12 @@ services: - "/var/run/docker.sock:/var/run/docker.sock:ro" - "/docker/core/traefik/letsencrypt:/letsencrypt" - "${REPO_ROOT}/traefik/dynamic:/etc/traefik/dynamic" - networks: - - guac_external - - komodo_external - - ansible_external - - dns_external - - homepage_external + #networks: + # - guac_external + # - komodo_external + # - ansible_external + # - dns_external + # - homepage_external # DDNS UPDATER (IP Updates) ddns: diff --git a/keepalived/keepalived.conf.tpl b/keepalived/keepalived.conf.tpl index 38817cb..1adb5ae 100644 --- a/keepalived/keepalived.conf.tpl +++ b/keepalived/keepalived.conf.tpl @@ -1,12 +1,12 @@ global_defs { - router_id 51 + router_id 50 script_user root enable_script_security } -vrrp_script chk_komodo { +vrrp_script chk_traefik { # CONTAINER PATH (Inside the mount) - script "/checks/check_komodo.sh" + script "/usr/bin/curl -f http://localhost:80/" interval 2 weight -5 fall 2 @@ -16,7 +16,7 @@ vrrp_script chk_komodo { vrrp_instance VI_1 { state {{STATE}} interface eth0 - virtual_router_id 51 + virtual_router_id 50 priority {{PRIORITY}} advert_int 1 @@ -34,6 +34,6 @@ vrrp_instance VI_1 { } track_script { - chk_komodo + chk_traefik } } \ No newline at end of file