Skip to content

Instantly share code, notes, and snippets.

@raulcd
Created October 16, 2014 10:09
Show Gist options
  • Save raulcd/ad65915c0ec560809d82 to your computer and use it in GitHub Desktop.
Save raulcd/ad65915c0ec560809d82 to your computer and use it in GitHub Desktop.
Fig and Docker files
FROM nginx
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD /usr/sbin/nginx -c /etc/nginx/nginx.conf
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
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