I hereby claim:
- I am muresan on github.
- I am catalinmuresan (https://keybase.io/catalinmuresan) on keybase.
- I have a public key ASCueIbNIpK2K9bR-v2zDCinlZtgH_Eziwl7pBYiA8sV5wo
To claim this, I am signing this object:
docker network create -d overlay --subnet 10.10.10.0/24 consul-swarm | |
docker service create --network consul-swarm --name consul --mode=global -e CONSUL_BIND_INTERFACE=eth0 -e CONSUL_CLIENT_INTERFACE=eth0 -p 8500:8500 consul agent -server -bootstrap-expect=2 -retry-join=tasks.consul -ui -client=0.0.0.0 | |
docker service create --network consul-swarm --name registrator --mode=global --mount type=bind,source=/var/run/docker.sock,destination=/tmp/docker.sock gliderlabs/registrator consul://consul:8500 | |
docker service create --name traefik --constraint node.role==manager --publish 80:80 --publish 8080:8080 --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock --network hw_replica traefik --docker --docker.swarmmode --docker.domain=traefik --docker.watch --web |
FROM muresan/alpine-arm64:v3.5 | |
MAINTAINER muresan | |
RUN apk update \ | |
&& apk add openjdk8 imagemagick lsof nano sudo vim jq shadow sudo bash curl \ | |
&& rm -fv /var/cache/apk/APKINDEX* | |
RUN groupadd --gid 1000 minecraft \ | |
&& useradd -s /bin/false --uid 1000 minecraft \ |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
#TODO | |
Vagrant.configure(2) do |config| | |
hosts = { | |
'docker-m01' => { 'ip' => '192.168.124.181', 'cpus' => 1, 'memory' => 2048, 'autostart' => true }, | |
'docker-m02' => { 'ip' => '192.168.124.182', 'cpus' => 1, 'memory' => 2048, 'autostart' => true }, | |
'docker-m03' => { 'ip' => '192.168.124.183', 'cpus' => 1, 'memory' => 2048, 'autostart' => true }, |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
#TODO | |
Vagrant.configure(2) do |config| | |
hosts = { | |
'splunk01' => { 'ip' => '192.168.124.201', 'cpus' => 1, 'memory' => 2048, 'autostart' => true }, | |
# 'splunk02' => { 'ip' => '192.168.124.202', 'cpus' => 1, 'memory' => 2048, 'autostart' => true }, | |
} |
# ----------------------------- | |
# PostgreSQL configuration file | |
# ----------------------------- | |
# | |
# This file consists of lines of the form: | |
# | |
# name = value | |
# | |
# (The "=" is optional.) Whitespace may be used. Comments are introduced with | |
# "#" anywhere on a line. The complete list of parameter names and allowed |
I hereby claim:
To claim this, I am signing this object:
# promote node from worker to manager | |
docker node promote w03.swarm.com | |
docker node ls | |
# demote node | |
docker node demote w03.swarm.com | |
# change availability of a node | |
docker node update --availability drain w03.swarm.com | |
docker node update --availability active w03.swarm.com |
SWARM_SERVICE_ID: "{{.Service.ID}}" | |
SWARM_SERVICE_NAME: "{{.Service.Name}}" | |
SWARM_SERVICE_LABELS: "{{.Service.Labels}}" | |
SWARM_NODE_ID: "{{.Node.ID}}" | |
SWARM_TASK_ID: "{{.Task.ID}}" | |
SWARM_TASK_NAME: "{{.Task.Name}}" | |
SWARM_TASK_SLOT: "{{.Task.Slot}}" | |
replicas: 3 | |
SWARM_NODE_ID='t3ybd0tf3p7ycpscp4wuuaktk' |
# System default settings live in /usr/lib/sysctl.d/00-system.conf. | |
# To override those settings, enter new settings here, or in an /etc/sysctl.d/<name>.conf file | |
# | |
# For more information, see sysctl.conf(5) and sysctl.d(5). | |
# Increase size of file handles and inode cache | |
fs.file-max = 2097152 | |
# Do less swapping | |
vm.swappiness = 10 |
version: '3.2' | |
services: | |
elasticsearch1: &elasticsearch | |
image: cbb/elasticsearch:5.5.0 | |
environment: &environment | |
ES_JAVA_OPTS: '-Xms256m -Xmx256m' | |
cluster.name: es-cluster | |
node.name: es1 | |
network.bind_host: 0.0.0.0 | |
discovery.zen.minimum_master_nodes: 2 |