[swarmdash]
This commit is contained in:
106
swarm.yml
106
swarm.yml
@@ -249,100 +249,52 @@
|
|||||||
- "traefik.http.routers.whoami-https.middlewares=privatevpn"
|
- "traefik.http.routers.whoami-https.middlewares=privatevpn"
|
||||||
networks:
|
networks:
|
||||||
- public
|
- public
|
||||||
swarmpit:
|
swarm-dashboard:
|
||||||
image: swarmpit/swarmpit:latest
|
image: mohsenasm/swarm-dashboard:latest
|
||||||
environment:
|
|
||||||
- SWARMPIT_DB=http://db:5984
|
|
||||||
- SWARMPIT_INFLUXDB=http://influxdb:8086
|
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
networks:
|
environment:
|
||||||
- public
|
TZ: "your_timezone"
|
||||||
- agent_network
|
ENABLE_AUTHENTICATION: "false"
|
||||||
ulimits:
|
ENABLE_HTTPS: "false"
|
||||||
nofile:
|
NODE_EXPORTER_SERVICE_NAME_REGEX: "node-exporter"
|
||||||
soft: 20000
|
CADVISOR_SERVICE_NAME_REGEX: "cadvisor"
|
||||||
hard: 40000
|
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpus: '0.50'
|
|
||||||
memory: 1024M
|
|
||||||
reservations:
|
|
||||||
cpus: '0.25'
|
|
||||||
memory: 512M
|
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- node.role == manager
|
- node.role == manager
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.docker.network=public"
|
|
||||||
- "traefik.http.routers.swarmpit-https.rule=Host(`swarmpit.jingoh.private`)"
|
- "traefik.http.routers.swarmpit-https.rule=Host(`swarmpit.jingoh.private`)"
|
||||||
- "traefik.http.routers.swarmpit-https.entrypoints=websecure"
|
- "traefik.http.routers.swarmpit-https.entrypoints=websecure"
|
||||||
- "traefik.http.routers.swarmpit-https.service=swarmpit"
|
- "traefik.http.routers.swarmpit-https.service=swarmpit"
|
||||||
- "traefik.http.services.swarmpit.loadbalancer.server.port=8080"
|
- "traefik.http.services.swarmpit.loadbalancer.server.port=8080"
|
||||||
- "traefik.http.routers.swarmpit-https.tls=true"
|
- "traefik.http.routers.swarmpit-https.tls=true"
|
||||||
- "traefik.http.routers.swarmpit-https.middlewares=privatevpn"
|
- "traefik.http.routers.swarmpit-https.middlewares=privatevpn"
|
||||||
db:
|
|
||||||
image: couchdb:2.3.1
|
|
||||||
volumes:
|
|
||||||
- db-data:/opt/couchdb/data
|
|
||||||
networks:
|
networks:
|
||||||
- agent_network
|
- public
|
||||||
deploy:
|
node-exporter:
|
||||||
labels:
|
image: quay.io/prometheus/node-exporter:v1.6.1
|
||||||
- "traefik.enable=false"
|
|
||||||
- "traefik.http.services.swarmpit-db.loadbalancer.server.port=5984"
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpus: '0.30'
|
|
||||||
memory: 512M
|
|
||||||
reservations:
|
|
||||||
cpus: '0.15'
|
|
||||||
memory: 256M
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- node.role == manager
|
|
||||||
influxdb:
|
|
||||||
image: influxdb:1.7
|
|
||||||
volumes:
|
volumes:
|
||||||
- influx-data:/var/lib/influxdb
|
- '/:/host:ro'
|
||||||
networks:
|
command:
|
||||||
- agent_network
|
- '--path.rootfs=/host'
|
||||||
deploy:
|
|
||||||
labels:
|
|
||||||
- "traefik.enable=false"
|
|
||||||
- "traefik.http.services.swarmpit-influxdb.loadbalancer.server.port=8086"
|
|
||||||
resources:
|
|
||||||
reservations:
|
|
||||||
cpus: '0.3'
|
|
||||||
memory: 128M
|
|
||||||
limits:
|
|
||||||
cpus: '0.6'
|
|
||||||
memory: 512M
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- node.role == manager
|
|
||||||
agent:
|
|
||||||
image: swarmpit/agent:latest
|
|
||||||
environment:
|
|
||||||
- DOCKER_API_VERSION=1.35
|
|
||||||
volumes:
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
||||||
networks:
|
|
||||||
- agent_network
|
|
||||||
deploy:
|
deploy:
|
||||||
mode: global
|
mode: global
|
||||||
labels:
|
networks:
|
||||||
- "traefik.enable=false"
|
- public
|
||||||
- "traefik.http.services.swarmpit-agent.loadbalancer.server.port=8080"
|
cadvisor:
|
||||||
resources:
|
image: gcr.io/cadvisor/cadvisor:v0.47.2
|
||||||
limits:
|
volumes:
|
||||||
cpus: '0.10'
|
- /:/rootfs:ro
|
||||||
memory: 64M
|
- /var/run:/var/run:rw
|
||||||
reservations:
|
- /sys:/sys:ro
|
||||||
cpus: '0.05'
|
- /var/lib/docker/:/var/lib/docker:ro
|
||||||
memory: 32M
|
- /dev/disk/:/dev/disk:ro
|
||||||
|
deploy:
|
||||||
|
mode: global
|
||||||
|
networks:
|
||||||
|
- public
|
||||||
networks:
|
networks:
|
||||||
public:
|
public:
|
||||||
external: true
|
external: true
|
||||||
|
|||||||
Reference in New Issue
Block a user