Skip to content

Instantly share code, notes, and snippets.

@Nagasaki45
Created February 29, 2016 19:36
Show Gist options
  • Save Nagasaki45/15f22aeb60e49d1c30d3 to your computer and use it in GitHub Desktop.
Save Nagasaki45/15f22aeb60e49d1c30d3 to your computer and use it in GitHub Desktop.
docker-compose configuration for Xteams production environment
nginx:
build: ./nginx
volumes_from:
- web
ports:
- "9768:8000"
links:
- web
restart: always
web:
build: .
command: gunicorn xteams.wsgi -b 0.0.0.0:8000
links:
- db
volumes:
- /staticfiles
restart: always
env_file: ./env_file
db:
image: postgres
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment