version: '3.6' #https://github.com/jakubhajek/elasticsearch-docker-swarm/blob/master/stack-elastic.yml # elasticsearch coordinating node # /etc/security/limits.conf # * hard memlock unlimited # * soft memlock unlimited # * hard nofile 65536 # * soft nofile 65536 # * hard nproc 65536 # * soft nproc 65536 # sysctl -w vm.max_map_count=262144 # /etc/sysctl.conf # vm.max_map_count=262144 # /lib/systemd/system/docker.service # LimitMEMLOCK=infinity #apt update #apt install apt-transport-https ca-certificates curl software-properties-common #curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - #add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" #apt update #apt-cache policy docker-ce #apt install docker-ce=18.06.3~ce~3-0~ubuntu #apt-get install nfs-common #docker swarm join-token worker #docker swarm join --token SWMTKN-1-1fd9zytidyai9bfelii0vt5nee6l43ibedvwjztbgncxfil2oi-0ungbwdty6jaihk5g7usk5pv9 192.168.25.46:2377 services: jira: image: 313devgrp/jira:12.14 ports: - "48080:48080" volumes: - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro deploy: &devtool-deploy mode: replicated replicas: 1 networks: &devtool-network - dev_network extra_hosts: &devtool-addhost - "313.co.kr:192.168.25.46" - "db.313.co.kr:192.168.25.40" - "nas.313.co.kr:192.168.25.42" - "www.313.co.kr:192.168.25.42" - "ubuntu.313.co.kr:192.168.25.46" logging: &devtool-logging driver: "json-file" options: max-file: "5" max-size: "100m" confluence: image: 313devgrp/confluence:12.14 ports: - "58090:58090" volumes: - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro deploy: *devtool-deploy networks: *devtool-network extra_hosts: *devtool-addhost logging: *devtool-logging fecru: image: 313devgrp/fecru:13.02 ports: - "8060:8060" volumes: - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro deploy: *devtool-deploy networks: *devtool-network extra_hosts: *devtool-addhost logging: *devtool-logging sonar: image: 313devgrp/sonar:12.06 ports: - "9090:9000" volumes: - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro deploy: *devtool-deploy networks: *devtool-network extra_hosts: *devtool-addhost logging: *devtool-logging jenkins: image: jenkins/jenkins:2.313 environment: JAVA_OPTS: "-Xms4g -Xmx4g -XX:+UseG1GC -Dfile.encoding=UTF-8 -Dhudson.security.csrf.GlobalCrumbIssuerConfiguration.DISABLE_CSRF_PROTECTION=true" ports: - "38080:8080" - "50000:50000" volumes: - jenkinsHome:/var/jenkins_home:nocopy - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro deploy: *devtool-deploy networks: *devtool-network extra_hosts: *devtool-addhost logging: *devtool-logging zipkin: image: openzipkin/zipkin ports: - 9411:9411 volumes: - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro environment: - STORAGE_TYPE=elasticsearch # Point the zipkin at the storage backend - "ES_HOSTS=192.168.25.46:9300" # Uncomment to see requests to and from elasticsearch # - ES_HTTP_LOGGING=BODY deploy: *devtool-deploy networks: *devtool-network extra_hosts: *devtool-addhost logging: *devtool-logging zipkinDependencies: image: openzipkin/zipkin-dependencies entrypoint: crond -f environment: - STORAGE_TYPE=elasticsearch - "ES_HOSTS=192.168.25.46:9300" - "ES_NODES_WAN_ONLY=true" volumes: - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro deploy: *devtool-deploy networks: *devtool-network extra_hosts: *devtool-addhost logging: *devtool-logging jrebel: image: 313devgrp/jrebel:2018.07.12 ports: - "31301:8888" volumes: - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro deploy: *devtool-deploy networks: *devtool-network extra_hosts: *devtool-addhost logging: *devtool-logging volumes: jenkinsHome: driver: local driver_opts: type: "nfs" o: "addr=${NFSSERVER:-1.2.3.4},nolock,soft,rw,sync" device: ":${NFSPATH:-/nfspath}/devtool/jenkins" networks: dev_network: attachable: true