Archive:Munich Makes: Difference between revisions

From The Munich Maker Lab's Wiki
Jump to navigation Jump to search
No edit summary
(setup instructions)
Line 13: Line 13:
* ???
* ???


== Setup ==
<pre>
# 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
</pre>
[[Category:Project]]
[[Category:Project]]

Revision as of 15:07, 4 November 2016

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