Skip to content

Instantly share code, notes, and snippets.

@Adarshreddyash
Created August 11, 2020 13:34
Show Gist options
  • Save Adarshreddyash/d4dabdb728ff3ceea789c9bc6e4d6ba3 to your computer and use it in GitHub Desktop.
Save Adarshreddyash/d4dabdb728ff3ceea789c9bc6e4d6ba3 to your computer and use it in GitHub Desktop.
#docker version
version: '3'
services:
web:
#this sets build directory
build: .
#making migrations and fire up server
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
container_name: music_api
#mount source to container
volumes:
- .:/music_api
ports:
- "8000:8000"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment