暗黑模式
Single Service
bash
docker compose -f /path/to/docker-compose.yml stop <server-name> # stop single service
docker compose -f /path/to/docker-compose.yml rm <server-name> # remove single service
docker compose -f /path/to/docker-compose.yml up --build -d <server-name> # build and start single service
1
2
3
2
3
Use case: after modified one service's
env_file
, you need to remove it's container and rebuild/restart the cntainer