Another powerful commands
Stop and clean up your docker-compose services (because yolo):
docker-compose down -v --rmi all
Build and start services in single line:
docker-compose up --build
Build and start in background:
docker-compose up -d --build
Run command with docker-compose:
# docker-compose exec [service_name] [command] docker-compose exec django python manage.py shell
See the logs an specific service
docker-compose logs -f [service_name]
Enjoy!
Good commands, for log I like to add --tail in order to avoid to see only last X logs docker-compose logs -f --tail [number] [service_name]
docker-compose logs -f --tail [number] [service_name]
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Another powerful commands
Stop and clean up your docker-compose services (because yolo):
Build and start services in single line:
Build and start in background:
Run command with docker-compose:
See the logs an specific service
Enjoy!
Good commands, for log I like to add --tail in order to avoid to see only last X logs
docker-compose logs -f --tail [number] [service_name]