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 | |
curl https://gist.githubusercontent.com/jmcarbo/498ed8bab95bab40eef7716d25b29e7c/raw | docker stack deploy -c - portainer |
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.4' | |
services: | |
postgres: | |
image: postgres | |
environment: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: changeme | |
PGDATA: /data/postgres | |
volumes: |
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.4' | |
services: | |
portainer: | |
image: portainer/portainer | |
command: -H unix:///var/run/docker.sock -t https://raw.githubusercontent.com/jmcarbo/templates/master/templates.json --no-auth | |
ports: | |
- "9000" | |
networks: | |
- portainer-net |
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.4' | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.1.1 | |
container_name: elasticsearch | |
environment: | |
- ELASTIC_PASSWORD=MagicWord | |
- cluster.name=docker-cluster | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
ulimits: |
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
down vote | |
accepted | |
This works on Linux Mint, Ubuntu, Debian, I think most Debian-based distros... | |
echo "America/Eastern" | sudo tee /etc/timezone | |
sudo dpkg-reconfigure --frontend noninteractive tzdata | |
Where to find timezones: | |
See this Wikipedia link on the tz database for other timezones to use |
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
traefikedge: | |
image: traefik:1.4.3-alpine | |
ports: | |
- target: 80 | |
published: 80 #for redirect to HTTPS | |
protocol: tcp | |
mode: host #to bypass ingress mesh, to preserve client ip | |
- target: 443 | |
published: 443 | |
protocol: tcp |
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
FROM ubuntu:16.04 | |
RUN apt-get update && apt-get install -y curl jq wget | |
RUN wget $(curl https://api.github.com/repos/containous/traefik/releases/latest| jq -r '.assets[] | select(.name == "traefik_linux-arm")| .browser_download_url') | |
RUN install traefik_linux-arm /usr/local/bin/traefik && chmod +x /usr/local/bin/traefik && rm traefik_linux-arm |
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: | |
minio1: | |
image: minio/minio:RELEASE.2017-11-22T19-55-46Z | |
volumes: | |
- minio1-data:/export | |
ports: | |
- "9001:9000" | |
networks: |
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.1" | |
services: | |
cockroachdb1: | |
image: cockroachdb/cockroach:beta-20170330 | |
command: start --advertise-host=cockroachdb1 --logtostderr --insecure | |
networks: | |
- cockroachdb | |
volumes: | |
- cockroachdb1:/cockroach/cockroach-data | |
stop_grace_period: 60s |
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
docker run --rm -ti -v $PWD/ca:/data cfssl/cfssl gencert -loglevel=5 -initca /data/ca.csr | docker run -i -v $PWD/ca:/data -w /data --entrypoint cfssljson cfssl/cfssl -bare | |
docker run --rm -ti -v $PWD:/data cfssl/cfssl genkey -loglevel=5 /data/cert/cert.json | docker run -i -v $PWD:/data -w /data/cert --entrypoint cfssljson cfssl/cfssl -bare | |
docker run --rm -ti -v $PWD:/data cfssl/cfssl sign -ca /data/ca/cert.pem -ca-key /data/ca/cert-key.pem -loglevel=5 /data/cert/cert.csr |docker run -i -v $PWD:/data -w /data/cert --entrypoint cfssljson cfssl/cfssl -bare |