Skip to content

Instantly share code, notes, and snippets.

@andrewgodwin
Last active December 2, 2015 08:45
Show Gist options
  • Save andrewgodwin/35904f2d9558eac1b91f to your computer and use it in GitHub Desktop.
Save andrewgodwin/35904f2d9558eac1b91f to your computer and use it in GitHub Desktop.
# Main Nginx router
www-router:
image: andrewgodwin/www-router
environment:
www.aeracode.org: aeracode-varnish
aeracode.org: redirect:www.aeracode.org
www.codingponies.com: codingponies
codingponies.com: redirect:www.codingponies.com
www.aerastudios.com: aerastu-varnish
aerastudios.com: redirect:www.aerastudios.com
grorg.aeracode.org: grorg
lastgraph.aeracode.org: lastgraph
lastgraph3.aeracode.org: lastgraph
stations.aeracode.org: stations
ports:
- "80:80"
links:
- aeracode-varnish:aeracode-varnish
- aerastu-varnish:aerastu-varnish
- codingponies:codingponies
- grorg:grorg
- lastgraph:lastgraph
- stations:stations
# SSL termination
www-ssl-aeracode:
image: andrewgodwin/www-ssl-aeracode
ports:
- "443:443"
links:
- www-router:backend
# Aeracode
aeracode:
image: andrewgodwin/aeracode
volumes:
- /srv/docker/volumes/aeracode-static:/srv/static
restart: always
aeracode-varnish:
image: andrewgodwin/varnish
links:
- aeracode:backend
environment:
BACKEND_TYPE: django
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment