Created
October 16, 2014 10:09
-
-
Save raulcd/ad65915c0ec560809d82 to your computer and use it in GitHub Desktop.
Fig and Docker files
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
FROM nginx | |
COPY nginx.conf /etc/nginx/nginx.conf | |
EXPOSE 80 | |
CMD /usr/sbin/nginx -c /etc/nginx/nginx.conf |
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
db: | |
image: postgres | |
web: | |
build: ./django-docker/ | |
command: python manage.py runserver 0.0.0.0:8000 | |
volumes: | |
- ./django-docker/:/code | |
ports: | |
- "8000:8000" | |
links: | |
- db | |
nginx: | |
build: ./nginx-docker/ | |
ports: | |
- "80:80" | |
links: | |
- web |
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
daemon off; | |
events { | |
} | |
http { | |
server { # simple reverse-proxy | |
listen 80; | |
# pass requests for dynamic content to rails/turbogears/zope, et al | |
location / { | |
proxy_pass http://web_1:8000; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment