Skip to content

Instantly share code, notes, and snippets.

@edwardleoni
Last active January 3, 2017 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwardleoni/8e934e8d178a30ceed36c7099d2891c3 to your computer and use it in GitHub Desktop.
Save edwardleoni/8e934e8d178a30ceed36c7099d2891c3 to your computer and use it in GitHub Desktop.
Docker-Python usage
web:
image: eduardoleoni/python3.6-django1.10
container_name: <container-name>
restart: unless-stopped
ports:
- "8000:8000"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ../project:/app/:rw #Overwrite "project" for your project folder
command: python /app/manage.py runserver 0.0.0.0:8000
tty: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment