Commit 99a575

2026-01-30 12:14:11 feagor: -/-
docker/tips_and_tricks.md ..
@@ 1,7 1,7 @@
docker compose expects a compose.yml file in the current directory and if one isn't present it will complain. In order to improve your quality of life we suggest the use of bash aliases. The file path for the aliases below assumes that the compose.yml file is being kept in the folder /opt. If your compose file is kept somewhere else, like in a home directory, then the path will need to be changed.
Create or open the file ~/.bash_aliases and populate with the following content:
- ```yaml
+ ```bash
alias dcup='docker compose -f /opt/compose.yml up -d' #brings up all containers if one is not defined after dcup
alias dcdown='docker compose -f /opt/compose.yml stop' #brings down all containers if one is not defined after dcdown
alias dcpull='docker compose -f /opt/compose.yml pull' #pulls all new images is specified after dcpull
@@ 10,7 10,7 @@
```
If the compose.yml file is in a home directory, the following can be put in the ~/.bash_aliases file.
- ```yaml
+ ```bash
alias dcup='docker compose -f ~/compose.yml up -d' #brings up all containers if one is not defined after dcup
alias dcdown='docker compose -f ~/compose.yml stop' #brings down all containers if one is not defined after dcdown
alias dcpull='docker compose -f ~/compose.yml pull' #pulls all new images unless one is specified
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9