Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (64 sloc) 1.22 KB
version: "3.3"
services:
elasticsearch:
image: 'docker.elastic.co/elasticsearch/elasticsearch:5.6.1'
ports:
- "9200:9200"
- "9300:9300"
volumes:
- elasticdata:/usr/share/elasticsearch/data
networks:
- backend
deploy:
replicas: 1
environment:
- xpack.security.enabled=false
kibana:
image: 'melvindave/kibana:5.6.1'
ports:
- "5601:5601"
networks:
- backend
depends_on:
- elasticsearch
deploy:
replicas: 1
portainer:
image: portainer/portainer
ports:
- 9000:9000
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "portainerdata:/data"
networks:
- frontend
deploy:
placement:
constraints: [node.role == manager]
ms1:
image: melvindave/spring-boot-example
ports:
- "8080:8080"
networks:
- backend
depends_on:
- mongodb
deploy:
replicas: 1
mongodb:
image: mongo
ports:
- "27017:27017"
volumes:
- "mongodata:/data/db"
networks:
- backend
deploy:
replicas: 1
networks:
frontend:
backend:
volumes:
mongodata:
portainerdata:
elasticdata: