Munich Makes

From The Munich Maker Lab's Wiki
Jump to: navigation, search

Consolidated information about the Munich Maker "scene" (ugh, I hate that word).

Parts

Setup

# Create directories for reverse proxy
mkdir -p /data/rev-proxy/certs

# Start reverse proxy
docker run -d -p 80:80 -p 443:443 \
    --name nginx-proxy \
    -v /data/rev-proxy/certs:/etc/nginx/certs:ro \
    -v /etc/nginx/vhost.d \
    -v /usr/share/nginx/html \
    -v /var/run/docker.sock:/tmp/docker.sock:ro \
    jwilder/nginx-proxy

# Start letsencrypt tool
docker run -d \
    --name nginx-letsencrypt \
    -v /data/rev-proxy/certs:/etc/nginx/certs:rw \
    --volumes-from nginx-proxy \
    -v /var/run/docker.sock:/var/run/docker.sock:ro \
    jrcs/letsencrypt-nginx-proxy-companion

# Build calendar image
git clone https://github.com/tiefpunkt/community_calendar.git
cd community_calendar
docker build -t munichmakes/calendar .

# Start calendar
docker run -d \
  --name=munichmakes_calendar \
  -v /data/munichmakes/calendar:/data \
  -e "VIRTUAL_HOST=calendar.munichmakes.de,munichmakes.tiefpunkt.com" \
  -e "LETSENCRYPT_HOST=calendar.munichmakes.de,munichmakes.tiefpunkt.com" \
  -e "LETSENCRYPT_EMAIL=munichmakes@tiefpunkt.com" \
  munichmakes/calendar

# Start planet (build instructions: https://github.com/munichmakes/moonmoon-docker)
docker run -d \
  --name munichmakes_planet \
  -v /data/munichmakes/planet:/data \
  -e "VIRTUAL_HOST=planet.munichmakes.de" \
  -e "LETSENCRYPT_HOST=planet.munichmakes.de" \
  -e "LETSENCRYPT_EMAIL=munichmakes@tiefpunkt.com" \
  moonmoon

# HTTP redirects
docker run -d \
  --name munichmakes_www_redirect \
  -e "REDIRECT=https://calendar.munichmakes.de" \
  -e "VIRTUAL_HOST=munichmakes.de,www.munichmakes.de" \
  ianneub/redirect