Skip to content

Instantly share code, notes, and snippets.

View ismailyenigul's full-sized avatar

ismail yenigul ismailyenigul

View GitHub Profile
@ismailyenigul
ismailyenigul / gist:cee62494e67e3160d6d2bb463656e7b6
Last active March 13, 2018 16:06
traefik reverse proxy for kibana and elasticsearch with basic auth
#modifed version of docker-compose.yml from https://github.com/deviantony/docker-elk
# I will write an article about this later.
version: '2'
services:
elasticsearch:
build:
context: elasticsearch/
@ismailyenigul
ismailyenigul / docker-traefik-label.txt
Last active May 30, 2023 04:46
docker labels for traefik reverse proxy multiple ports in a single container with different domain names
--label "traefik.enable=true" \
--label "traefik.protocol=http" \
--label "traefik.first.port=80" \
--label "traefik.first.frontend.rule=Host:web1.example.com" \
--label "traefik.second.port=8080" \
--label "traefik.second.frontend.rule=Host:web2.example.com" \
Above labels will allow us to forward web1.example.com to docker container port 80 and web2.example.com to same container's port 8080
@ismailyenigul
ismailyenigul / nginx-traefik-v2-docker-compose.yml
Last active May 4, 2024 22:59
nginx and traefik v2 deployment with docker-compose
1. create a network with docker network create NETWORKNAME
2. Create letsencrypt directory for acme.json ie /docker/letsencrypt directory or somewhere else mkdir -p /docker/letsencrypt
3. I configured http -> https redirect
# cat docker-compose.yml
version: '3.3'
services:
traefik2:
image: traefik
@ismailyenigul
ismailyenigul / nexus-v3-traefik-v2-docker-compose.yml
Last active May 23, 2024 20:03
Deploy nexus repository OSS v3 with docker ( traefik v2 and docker-compose)
#1. Create a volume directory for nexus-data. I used /nexus-data directory which is mount point of the second disk
# mkdir /nexus-data
# chown -R 200 /nexus-data #nexus user id 200 in dockerfile
#Create a letsencrypt directory to store traefik acme.json file which keeps SSL certs
# mkdir -p /docker/letsencrypt
#Change NEXUS.mydomain.com with your domain name.
#Change acme.email=MYEMAIL@gmail.com
# cat docker-compose.yml
@ismailyenigul
ismailyenigul / timescaledb-timescaledb-postgresql-adaptor-docker-compose.yml
Last active December 31, 2023 16:13
docker compose for timescaledb and postgresql-adaptor
I choosed host path mapping for postgresql data directory in a separate OS disk to be able to resize partition later.
You can use docker standart volumes too.
# mkdir -p /data/timescaledb
# cat docker-compose.yml
version: '3'
services:
@ismailyenigul
ismailyenigul / nextcloud-pgsql-redis-traefikv2-docker-compose.yml
Last active October 11, 2023 13:11
Docker-compose file for nextcloud with pgsql,redis and traefik deployment
# docker network create nextcloud
NOTES:
1. certificatesresolvers.myresolver.acme.email=myemail@gmail.com
2. TRUSTED_PROXIES values based on your 'nexcloud network'
3. remove traefik.http.middlewares.nextcloud.headers.contentSecurityPolicy and
traefik.http.middlewares.nextcloud.headers.customFrameOptionsValue if you don't want to allow iframe your domain
3
# cat docker-compose.yml
@ismailyenigul
ismailyenigul / nextcloud-traefik2-multi-network-deployment.yml
Last active September 15, 2021 07:55
nextcloud-traefik2-multi-network-deployment
## Trafik Multi Network Deployment
1. Create Traefik network
` # docker network create --driver=bridge --attachable --internal=false traefik `
2. Edit `traefik2/docker-compose.yml`
- Change ACME email
- Change --providers.docker.network=traefik value if you created different network then `traefik`
@ismailyenigul
ismailyenigul / kubectl-bash-auto-completion-on-MacOS.md
Created July 2, 2020 06:04
kubectl bash auto completion on MacOS

on Bash

$ brew install bash-completion
$ kubectl completion ~/.kubectl-bash
$ echo ". /usr/local/etc/profile.d/bash_completion.sh" >> ~/.bash_profile
$ echo ". ~/.kubectl-bash"  >> ~/.bash_profile
$ source  ~/.bash_profile

@ismailyenigul
ismailyenigul / swaks-aws-ses.md
Created July 8, 2020 15:47
swaks AWS SES Test email

install swaks

apt install -y swaks

send test message

swaks  --from sender@domain.com --to rcptuser@domain.com --auth-user myuser --auth-password "mypass"  --server  email-smtp.eu-west-1.amazonaws.com  --tlsc

Options