swirl/compose.yml
2018-01-04 15:54:28 +08:00

34 lines
538 B
YAML

version: '3'
services:
swirl:
image: cuigh/swirl
environment:
DB_ADDRESS: mongo:27017/swirl
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 8001:8001
networks:
- net
deploy:
replicas: 1
placement:
constraints: [node.role == manager]
mongo:
image: mongo
volumes:
- mongo:/data/db
networks:
- net
deploy:
replicas: 1
# placement:
# constraints: [node.hostname == mongo]
volumes:
mongo:
networks:
net: