Installing
You can try install docker compose in two method, apt
package managing or manually. Read more at
- Install the Compose plugin (Recommended)
- Install Compose standalone
Use apt
package
Manually download
- To download and install the Compose CLI plugin, run
- Apply executable permissions to the binary
Basic command
Info
With
docker-compose
, you can find and explore more about this technicals with documentation in details, such as
up
and stop
command which commonly use to bring up and down the bunch of container inside compose file
Common options often use with compose
, like
-p
: set project name, represent your container name with service in compose file, example:next-application
-f
: specify with compose file in use for execute with command
Note special Key in compose
Use host network to use driver of local interface,
Use when you want to call via DNS
on different network with your eth
interface
Documentation: Accessing Host Services from Docker Containers
Select your network with external
Update compose
Documentation
Info
You can hand-on with compose via update the container inside stack to new version by trying pull and up again
If you have new version of images inside one of container, you can try to update that via