Skip to content

Instantly share code, notes, and snippets.

View Noschvie's full-sized avatar

Norbert Noschvie

  • Vienna
  • 01:03 (UTC +02:00)
View GitHub Profile
@Noschvie
Noschvie / docker-compose.yml
Last active May 4, 2020 15:05 — forked from Mau5Machine/docker-compose.yml
Traefik Configuration and Setup
version: "3.3"
services:
################################################
#### Traefik Proxy Setup #####
###############################################
traefik:
image: traefik:v2.0
restart: always
@Noschvie
Noschvie / create_docker_compose_basic_auth_string_for_traefik.sh
Last active May 3, 2020 13:00 — forked from movd/create_docker_compose_basic_auth_string_for_traefik.sh
Generator to create basic authentication string for traefik (docker-compose.yml and .env)
#!/bin/bash
command -v docker >/dev/null 2>&1 || { echo >&2 "I require Docker but it's not installed. Aborting."; exit 1; }
echo "Basic auth for traefik >= v1.7"
read -p "User: " USER
read -p "Password: " PW
# Pull httpd:alpine image (small and includes httpasswd)
docker pull httpd:alpine >/dev/null 2>&1