Created
July 31, 2019 16:23
-
-
Save JoaoVagner/46ccf28944da1f8fad12257c4e283586 to your computer and use it in GitHub Desktop.
system.yaml
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' | |
services: | |
visualizer: | |
image: dockersamples/visualizer | |
networks: | |
- icasei | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock" | |
deploy: | |
placement: | |
constraints: | |
- "node.role == manager" | |
labels: | |
- "traefik.backend=visualizer" | |
- "traefik.frontend.rule=Host:visualizer.icasei.com.br" | |
- "traefik.port=8080" | |
- "traefik.frontend.entryPoints=http,https" | |
- "traefik.docker.network=icasei" | |
graylog: | |
image: graylog2/server:2.2.1-1 | |
networks: | |
- icasei | |
volumes: | |
- "graylog_journal:/usr/share/graylog/data/journal" | |
environment: | |
GRAYLOG_PASSWORD_SECRET: My-secret-pass-wd-12309834987345 | |
GRAYLOG_ROOT_PASSWORD_SHA2: 8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918 | |
GRAYLOG_WEB_ENDPOINT_URI: http://graylog.icasei.com.br/api/ | |
deploy: | |
mode: global | |
restart_policy: | |
condition: on-failure | |
labels: | |
- "traefik.backend=graylog" | |
- "traefik.frontend.rule=Host:graylog.icasei.com.br" | |
- "traefik.port=9000" | |
- "traefik.frontend.entryPoints=http,https" | |
- "traefik.docker.network=icasei" | |
depends_on: | |
- mongo | |
- elasticsearch | |
ports: | |
- "9000:9000" | |
- "12201:12201/udp" | |
- "1514:1514" | |
- "514:514/udp" | |
elasticsearch: | |
image: "elasticsearch:2" | |
command: "elasticsearch -Des.cluster.name='graylog'" | |
networks: | |
- icasei | |
volumes: | |
- "es_data:/usr/share/elasticsearch/data" | |
deploy: | |
restart_policy: | |
condition: on-failure | |
placement: | |
constraints: | |
- node.role == worker | |
mongo: | |
image: "mongo:3" | |
volumes: | |
- "mongodata:/data/db" | |
networks: | |
- icasei | |
deploy: | |
placement: | |
constraints: | |
- "node.role == worker" | |
restart_policy: | |
condition: on-failure | |
traefik: | |
image: ${REGISTRY_SERVER}/traefik:${TAG:-development} | |
build: | |
context: ./traefik-setup | |
args: | |
- build_env=development | |
environment: | |
- ENV=development | |
command: | |
- "--web" | |
- "--docker" | |
- "--docker.watch" | |
- "--docker.domain=icasei.com.br" | |
- "--logLevel=DEBUG" | |
- "--entryPoints=Name:https Address::443 TLS:/ssl/icasei.com.br.crt,/ssl/icasei.com.br.key" | |
- "--entryPoints=Name:http Address::80" | |
- "--docker.endpoint=unix:///var/run/docker.sock" | |
ports: | |
- "80:80" | |
- "8080:8080" | |
- "443:443" | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock" | |
- "/dev/null:/traefik.toml" | |
deploy: | |
mode: global | |
placement: | |
constraints: | |
- node.role == manager | |
labels: | |
- "traefik.enable=false" | |
networks: | |
- icasei | |
logging: | |
driver: "gelf" | |
options: | |
tag: traefik,system | |
labels: traefik,system | |
env: development | |
gelf-address: "udp://localhost:12201" | |
networks: | |
icasei: | |
driver: overlay | |
volumes: | |
mongodata: {} | |
es_data: {} | |
graylog_journal: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment