Skip to content

Instantly share code, notes, and snippets.

@LuisQBlanco
Last active May 16, 2020 21:44
Show Gist options
  • Save LuisQBlanco/ae7483af7cfca4ad9d2378a838e989ca to your computer and use it in GitHub Desktop.
Save LuisQBlanco/ae7483af7cfca4ad9d2378a838e989ca to your computer and use it in GitHub Desktop.
Docker and Docker-compose commands

Docker-compose commands

To put off and delete containers, volumes

    docker-compose down -v

Build and turn on container

    docker-compose up -d --build
    $ docker-compose -f docker-compose.prod.yml down -v
    $ docker-compose -f docker-compose.prod.yml up -d --build
    $ docker-compose -f docker-compose.prod.yml exec web python manage.py migrate --noinput
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment