Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
156 lines (140 sloc) 2.9 KB
version: "3"
services:
apis:
image: thanhson1085/api-seed
logging:
driver: fluentd
options:
fluentd-address: "localhost:24224"
tag: "docker.apis"
depends_on:
- db
- redis
- fluentd
networks:
- front-net
- back-net
site:
image: thanhson1085/site-seed
networks:
- front-net
redis:
image: redis:alpine
networks:
- back-net
db:
image: mongo:3.2
volumes:
- "mongodb:/data/db"
networks:
- back-net
kibana:
image: kibana
ports:
- "5601:5601"
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
depends_on:
- elasticsearch
networks:
- monitor-net
elasticsearch:
image: elasticsearch
volumes:
- "elasticsearch:/usr/share/elasticsearch/data"
networks:
- monitor-net
fluentd:
image: thanhson1085/fluentd-es
ports:
- "24224:24224"
environment:
- ES_PORT_9200_TCP_ADDR=elasticsearch
networks:
- monitor-net
grafana:
image: grafana/grafana
ports:
- "3000:3000"
depends_on:
- influxdb
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
networks:
- monitor-net
kapacitor:
image: kapacitor
ports:
- "9092:9092"
depends_on:
- influxdb
volumes:
- ./monitor/kapacitor/kapacitor.conf:/etc/kapacitor/kapacitor.conf:ro
- "kapacitor:/var/lib/kapacitor"
networks:
- monitor-net
influxdb:
image: influxdb
networks:
- monitor-net
volumes:
- "influxdb:/var/lib/influxdb"
ports:
- "8083:8083"
- "8086:8086"
telegraf:
image: telegraf
hostname: nodeone
depends_on:
- influxdb
environment:
- "HOST_PROC=/rootfs/proc"
- "HOST_SYS=/rootfs/sys"
- "HOST_ETC=/rootfs/etc"
volumes:
- ./monitor/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /sys:/rootfs/sys:ro
- /proc:/rootfs/proc:ro
- /etc:/rootfs/etc:ro
networks:
- monitor-net
gateway:
image: nginx
logging:
driver: fluentd
options:
fluentd-address: "localhost:24224"
tag: "docker.gateway"
volumes:
- ./nginx/app.template:/etc/nginx/conf.d/default.conf
- ./nginx/nginx.template:/etc/nginx/nginx.conf
- ./nginx/:/intermission/
ports:
- "80:80"
- "443:443"
depends_on:
- apis
networks:
- front-net
# gateway:
# image: openresty/openresty:jessie
# volumes:
# - ./openresty/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf
# - ./openresty/:/intermission/
# ports:
# - "80:80"
# - "443:443"
# depends_on:
# - apis
# networks:
# - front-net
volumes:
mongodb:
influxdb:
kapacitor:
elasticsearch:
networks:
front-net:
back-net:
monitor-net: