Last active
January 4, 2017 05:17
-
-
Save edwardleoni/c14f1d129743519d65b3f6a3af654764 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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