diff --git a/bxl-swarm/system.stack.yaml b/bxl-swarm/system.stack.yaml index 9a27f58..a2d0f95 100644 --- a/bxl-swarm/system.stack.yaml +++ b/bxl-swarm/system.stack.yaml @@ -1,4 +1,4 @@ -version: '3.2' +version: '3.7' services: traefik: @@ -37,6 +37,9 @@ services: - type: bind source: /mnt/nfs/traefik/acme.json target: /acme.json + - type: bind + source: /mnt/nfs/traefik/rules.toml + target: /rules.toml networks: - external deploy: @@ -85,9 +88,30 @@ services: placement: constraints: [node.platform.os == linux] + keepalived: + image: linkvt/osixia_keepalived:stable + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - /usr/bin/docker:/usr/bin/docker:ro + networks: + - host + cap_add: + - NET_ADMIN + - NET_BROADCAST + - NET_RAW + environment: + - KEEPALIVED_VIRTUAL_IPS=192.168.1.219 + - KEEPALIVeD_INTERFACE=eth0 + deploy: + mode: global + placement: + constraints: [node.role == manager] + networks: external: external: true agent_network: driver: overlay attachable: true + host: + external: true