[swarmpit]

This commit is contained in:
2024-07-28 15:56:33 +02:00
parent a899e5581c
commit 954f3c3ee5

175
swarm.yml
View File

@@ -249,87 +249,100 @@
- "traefik.http.routers.whoami-https.middlewares=privatevpn" - "traefik.http.routers.whoami-https.middlewares=privatevpn"
networks: networks:
- public - public
# swarmpit: swarmpit:
# image: swarmpit/swarmpit:latest image: swarmpit/swarmpit:latest
# environment: environment:
# - SWARMPIT_DB=http://db:5984 - SWARMPIT_DB=http://db:5984
# - SWARMPIT_INFLUXDB=http://influxdb:8086 - SWARMPIT_INFLUXDB=http://influxdb:8086
# volumes: volumes:
# - /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro
# networks: networks:
# - public - public
# - agent_network - agent_network
# deploy: ulimits:
# resources: nofile:
# limits: soft: 20000
# cpus: '0.50' hard: 40000
# memory: 1024M deploy:
# reservations: resources:
# cpus: '0.25' limits:
# memory: 512M cpus: '0.50'
# placement: memory: 1024M
# constraints: reservations:
# - node.role == manager cpus: '0.25'
# labels: memory: 512M
# - "traefik.enable=true" placement:
# - "traefik.docker.network=public" constraints:
# - "traefik.http.routers.swarmpit-https.rule=Host(`swarmpit.jingoh.private`)" - node.role == manager
# - "traefik.http.routers.swarmpit-https.entrypoints=websecure" labels:
# - "traefik.http.routers.swarmpit-https.service=swarmpit" - "traefik.enable=true"
# - "traefik.http.services.swarmpit.loadbalancer.server.port=8080" - "traefik.docker.network=public"
# - "traefik.http.routers.swarmpit-https.tls=true" - "traefik.http.routers.swarmpit-https.rule=Host(`swarmpit.jingoh.private`)"
# - "traefik.http.routers.swarmpit-https.middlewares=privatevpn" - "traefik.http.routers.swarmpit-https.entrypoints=websecure"
# db: - "traefik.http.routers.swarmpit-https.service=swarmpit"
# image: couchdb:2.3.1 - "traefik.http.services.swarmpit.loadbalancer.server.port=8080"
# volumes: - "traefik.http.routers.swarmpit-https.tls=true"
# - db-data:/opt/couchdb/data - "traefik.http.routers.swarmpit-https.middlewares=privatevpn"
# networks: db:
# - agent_network image: couchdb:2.3.1
# deploy: volumes:
# resources: - db-data:/opt/couchdb/data
# limits: networks:
# cpus: '0.30' - agent_network
# memory: 512M deploy:
# reservations: labels:
# cpus: '0.15' - "traefik.enable=false"
# memory: 256M - "traefik.http.services.swarmpit-db.loadbalancer.server.port=5984"
# placement: resources:
# constraints: limits:
# - node.role == manager cpus: '0.30'
# influxdb: memory: 512M
# image: influxdb:1.7 reservations:
# volumes: cpus: '0.15'
# - influx-data:/var/lib/influxdb memory: 256M
# networks: placement:
# - agent_network constraints:
# deploy: - node.role == manager
# resources: influxdb:
# reservations: image: influxdb:1.7
# cpus: '0.3' volumes:
# memory: 128M - influx-data:/var/lib/influxdb
# limits: networks:
# cpus: '0.6' - agent_network
# memory: 512M deploy:
# placement: labels:
# constraints: - "traefik.enable=false"
# - node.role == manager - "traefik.http.services.swarmpit-influxdb.loadbalancer.server.port=8086"
# agent: resources:
# image: swarmpit/agent:latest reservations:
# environment: cpus: '0.3'
# - DOCKER_API_VERSION=1.35 memory: 128M
# volumes: limits:
# - /var/run/docker.sock:/var/run/docker.sock:ro cpus: '0.6'
# networks: memory: 512M
# - agent_network placement:
# deploy: constraints:
# mode: global - node.role == manager
# resources: agent:
# limits: image: swarmpit/agent:latest
# cpus: '0.10' environment:
# memory: 64M - DOCKER_API_VERSION=1.35
# reservations: volumes:
# cpus: '0.05' - /var/run/docker.sock:/var/run/docker.sock:ro
# memory: 32M networks:
- agent_network
deploy:
mode: global
labels:
- "traefik.enable=false"
- "traefik.http.services.swarmpit-agent.loadbalancer.server.port=8080"
resources:
limits:
cpus: '0.10'
memory: 64M
reservations:
cpus: '0.05'
memory: 32M
networks: networks:
public: public:
external: true external: true