swirl/compose.yml

81 lines
1.6 KiB
YAML
Raw Normal View History

2018-01-04 07:54:28 +00:00
version: '3'
services:
swirl:
image: cuigh/swirl
environment:
2021-12-06 12:24:22 +00:00
DB_ADDRESS: mongodb://mongo:27017/swirl
DOCKER_ENDPOINT: tcp://swirl_manager_agent:2375
AGENTS: swirl_manager_agent,swirl_worker_agent
2018-01-04 07:54:28 +00:00
ports:
2021-12-06 12:24:22 +00:00
- "8001:8001"
2018-01-04 07:54:28 +00:00
networks:
- net
deploy:
replicas: 2
placement:
constraints: [ node.role == worker ]
manager_agent:
image: cuigh/socat
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- net
deploy:
mode: global
2018-01-04 07:54:28 +00:00
placement:
constraints: [ node.role == manager ]
worker_agent:
image: cuigh/socat
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- net
deploy:
mode: global
placement:
constraints: [ node.role == worker ]
# prometheus:
# image: prom/prometheus
# volumes:
# - prometheus:/prometheus
# networks:
# - net
# deploy:
# replicas: 1
# placement:
# constraints: [ node.labels.app.prometheus == true ]
# cadvisor:
# image: gcr.io/cadvisor/cadvisor
# volumes:
# - /:/rootfs:ro
# - /sys:/sys:ro
# - /var/lib/docker:/var/lib/docker:ro
# - /var/run:/var/run:ro
# - /var/run/docker.sock:/var/run/docker.sock:ro
# networks:
# - net
# deploy:
# mode: global
2018-01-04 07:54:28 +00:00
mongo:
image: mongo
volumes:
- mongo:/data/db
networks:
- net
deploy:
replicas: 1
# placement:
# constraints: [ node.labels.app.mongo == true ]
2018-01-04 07:54:28 +00:00
volumes:
prometheus:
2018-01-04 07:54:28 +00:00
mongo:
networks:
net: