Skip to content

Instantly share code, notes, and snippets.

@edwardleoni
Last active January 4, 2017 05:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwardleoni/c14f1d129743519d65b3f6a3af654764 to your computer and use it in GitHub Desktop.
Save edwardleoni/c14f1d129743519d65b3f6a3af654764 to your computer and use it in GitHub Desktop.
proxy:
image: eduardoleoni/nginx-proxy:latest
container_name: <container_name_here>
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx-proxy/nginx.tmpl/:/app/nginx.tmpl:rw
- ./nginx-proxy/conf.d/http.conf:/etc/nginx/conf.d/http.conf:rw
- ./nginx-proxy/vhost.d:/etc/nginx/vhost.d:rw
- ./nginx-proxy/certs:/etc/nginx/certs
- ./nginx-proxy/vhosts:/etc/nginx/vhosts
- ./nginx-proxy/proxy.conf:/etc/nginx/proxy.conf
environment:
- DEFAULT_HOST=test.com
website:
image: eduardoleoni/python3.6-django1.10
container_name: <container_name_here>
restart: unless-stopped
ports:
- "8000:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ../website:/app/:rw
environment:
- VIRTUAL_HOST=django.test.com
command: python /app/manage.py runserver 0.0.0.0:80
tty: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment