Forked from donvito/docker-compose-stack-elasticsearch-fluentd-nginx-kibana.yml
Created
February 27, 2020 06:03
-
-
Save t-t-t-t-t/9662315c3742ca0ad0ec032fe1efe214 to your computer and use it in GitHub Desktop.
Docker stack compose files I've created. Please feel free to use! Enjoy!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3.3" | |
| services: | |
| elasticsearch: | |
| image: 'docker.elastic.co/elasticsearch/elasticsearch:5.6.1' | |
| ports: | |
| - "9200:9200" | |
| - "9300:9300" | |
| volumes: | |
| - elasticsearchvol:/usr/share/elasticsearch/data | |
| networks: | |
| - net1 | |
| environment: | |
| - xpack.security.enabled=false | |
| fluentd: | |
| image: melvindave/fluentd-elastic:1.0 | |
| ports: | |
| - "24224:24224" | |
| networks: | |
| - net1 | |
| depends_on: | |
| - "elasticsearch" | |
| volumes: | |
| - ./fluentd/etc:/fluentd/etc | |
| kibana: | |
| image: 'melvindave/kibana:5.6.1' | |
| ports: | |
| - "5601:5601" | |
| networks: | |
| - net1 | |
| depends_on: | |
| - elasticsearch | |
| nginx: | |
| image: nginx | |
| ports: | |
| - "80:80" | |
| networks: | |
| - net1 | |
| deploy: | |
| replicas: 1 | |
| volumes: | |
| - /Users/melvin/Documents/go/projects/src/github.com/donvito/codechallenge/challenge2/nginx-files:/usr/share/nginx/html | |
| logging: | |
| driver: fluentd | |
| options: | |
| fluentd-address: localhost:24224 | |
| tag: httpd.access | |
| depends_on: | |
| - "fluentd" | |
| networks: | |
| net1: | |
| volumes: | |
| elasticsearchvol: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3.3" | |
| services: | |
| 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: 5 | |
| mongodb: | |
| image: mongo | |
| ports: | |
| - "27017:27017" | |
| volumes: | |
| - "mongodata:/data/db" | |
| networks: | |
| - backend | |
| deploy: | |
| replicas: 1 | |
| nginx: | |
| image: nginx | |
| ports: | |
| - "8082:80" | |
| networks: | |
| - frontend | |
| deploy: | |
| replicas: 1 | |
| traefik: | |
| image: traefik | |
| command: --web \ | |
| --docker \ | |
| --docker.swarmmode \ | |
| --docker.watch \ | |
| --logLevel=DEBUG | |
| networks: | |
| - backend | |
| ports: | |
| - "80:80" | |
| - "8081:8080" | |
| volumes: | |
| - /var/run/docker.sock:/var/run/docker.sock | |
| - /dev/null:/traefik.toml | |
| deploy: | |
| placement: | |
| constraints: [node.role==manager] | |
| networks: | |
| frontend: | |
| backend: | |
| volumes: | |
| mongodata: | |
| portainerdata: | |
| nginxdata: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment