Skip to content

Instantly share code, notes, and snippets.

@lukassup
Created September 19, 2016 12:17
Show Gist options
  • Save lukassup/f4b6e39424897c8229c57c012411de81 to your computer and use it in GitHub Desktop.
Save lukassup/f4b6e39424897c8229c57c012411de81 to your computer and use it in GitHub Desktop.
version: '2'
services:
# mq:
# image: rabbitmq:3.6
# expose:
# - '5672'
db:
image: postgres:9.5
environment:
- POSTGRES_PASSWORD=postgres
expose:
- '5432'
appserver:
build: .
command: python3 manage.py runserver 0.0.0.0:8000
# command: uwsgi # prod
environment:
- DJANGO_SETTINGS_MODULE=mysite.settings.development
# - UWSGI_SOCKET=:8000
# - UWSGI_MASTER=1
# - UWSGI_WORKERS=4
# - UWSGI_MODULE=mysite.wsgi
# - UWSGI_ENABLE_THREADS=1
depends_on:
- db
links:
- db
ports:
- '8000:8000'
volumes:
- .:/home/app/code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment