Skip to content

Instantly share code, notes, and snippets.

@pedropapa
Created October 9, 2017 19:48
Show Gist options
  • Save pedropapa/144b5689fc33dd9897f87d251d3b22a9 to your computer and use it in GitHub Desktop.
Save pedropapa/144b5689fc33dd9897f87d251d3b22a9 to your computer and use it in GitHub Desktop.
version: "3"
services:
rediscollab:
image: padraoix/redis
environment:
REDIS_TYPE: master
REDIS_CLUSTER: 'no'
deploy:
mode: replicated
replicas: 1
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure
ulimits:
nofile:
soft: 65536
hard: 65536
networks:
- internal
- deploy
elasticsearch:
image: padraoix/elasticsearch:1.7
environment:
ES_HEAP_SIZE: 1g
MAX_OPEN_FILES: 100000
CLUSTER_NAME: elasticsearch
NUMBER_OF_SHARDS: 5
NUMBER_OF_REPLICAS: 0
volumes:
- /data/MMA/elasticsearch/qa:/var/lib/elasticsearch
deploy:
mode: replicated
replicas: 1
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure
resources:
limits:
memory: 2g
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
networks:
- internal
gearman:
image: padraoix/gearman
deploy:
mode: replicated
replicas: 1
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure
networks:
- internal
chat:
image: padraoix/nodejs_chat:v5
volumes:
- /data/MMA/xcorp-pushd/qa:/opt/node
- /root/.ssh/id_rsa:/root/.ssh/id_rsa
- /root/.ssh/id_rsa.pub:/root/.ssh/id_rsa.pub
deploy:
mode: replicated
replicas: 1
labels:
xys.cliente: "MMA"
xys.tipoambiente: "QA"
xys.versaoambiente: "v5"
traefik.port: "80"
traefik.backend: "nodemma-qa"
traefik.frontend.rule: "Host:nodemma-qa.hmg.pix.com.br"
traefik.frontend.passHostHeader: 'true'
traefik.docker.network: "proxy_net"
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure
ulimits:
nofile:
soft: 65536
hard: 65536
networks:
- internal
- proxy_net
appserver:
image: padraoix/appserver_nginx:php54
environment:
GIT_TOKEN: 175973154022cd0997d1ba3919ee8921288fdefc
SERVER_NAME: "collab.pix.com.br appserver"
DEMO_MODE: 'no'
volumes:
- /data/collab/appserver/master:/var/www/html
- /data/MMA/appserver/supervisord.d:/etc/supervisord.d
- /data/MMA/appserver/cron/root:/var/spool/cron/root
- /root/.ssh/id_rsa:/root/.ssh/id_rsa
- /root/.ssh/id_rsa.pub:/root/.ssh/id_rsa.pub
depends_on:
- redismmaqa
- chat
- elasticsearch
- gearman
deploy:
mode: replicated
replicas: 1
labels:
xys.cliente: "Collab"
xys.tipoambiente: "master"
xys.versaoambiente: "v5"
traefik.port: "80"
traefik.backend: "collab"
traefik.frontend.rule: "Host:collab.hmg.pix.com.br"
traefik.frontend.passHostHeader: 'true'
traefik.docker.network: "proxy_net"
restart_policy:
condition: on-failure
networks:
- internal
- dbnet
- proxy_net
networks:
internal:
ipam:
config:
- subnet: 192.168.33.0/24
dbnet:
external: true
proxy_net:
external: true
deploy:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment