Last active
August 14, 2023 12:44
-
-
Save wojciechowskimar/046f09c537816535dd52ba750e8bc9a4 to your computer and use it in GitHub Desktop.
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
## DOCKER COMPOSE | |
## Run | |
docker-compose up # Run compose file | |
docker-compose up -d # Run compose file in background | |
## Restart | |
docker-compose restart | |
### Only build | |
docker-compose build | |
eg. sudo docker-compose build --no-cache --pull | |
### Scale up/down | |
docker-compose scale web=2 | |
docker-compose scale redis=2 | |
### Destroy compose | |
docker-compose down | |
### Go to shell | |
docker exec -it <container_id> bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment