mirror of
https://github.com/cuigh/swirl
synced 2024-12-29 07:12:11 +00:00
34 lines
538 B
YAML
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:
|