Last active
January 3, 2017 20:35
-
-
Save edwardleoni/8e934e8d178a30ceed36c7099d2891c3 to your computer and use it in GitHub Desktop.
Docker-Python usage
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
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