This file contains 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: '2.2' | |
services: | |
es01: | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.14.2 | |
container_name: es01 | |
environment: | |
- node.name=es01 | |
- cluster.name=es-docker-cluster | |
- discovery.seed_hosts=es02,es03 | |
- cluster.initial_master_nodes=es01,es02,es03 |
This file contains 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: | |
elastic: | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.14.2 | |
container_name: es01 | |
environment: | |
- node.name=es01 | |
- cluster.name=es-docker | |
- discovery.type=single-node | |
- bootstrap.memory_lock=true |
This file contains 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
# as super user do | |
systemctl disable nombre-del-servicio.service | |
# Check and remove any dangling symlinks for that .service | |
ls -l /etc/systemd/system/multi-user.target.wants |
This file contains 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
#!/bin/bash | |
# Script para generar entorno simulado de cluster Swarm con 3 nodos | |
# Creación de maquina default (se utilizara como cliente ) | |
# docker-machine create -d virtualbox default | |
# eval $(docker-machine env default) | |
# Lanzamos swarm desde maquina default | |
SWARM_TOKEN=$(docker run swarm create) |
This file contains 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
#!/bin/bash | |
# Run as super user | |
# Docker | |
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo "deb https://apt.dockerproject.org/repo ubuntu-wily main" >> /etc/apt/sources.list.d/docker.list | |
apt-get update && apt-get install -y docker-engine | |
# Create docker Group |