I fail to understand how profiles work in docker compose.
So, I'm having two services defined in the docker-compose.yml
services:
db:
(...)
profiles:
- default
- db
app:
(...)
profiles:
- default
When I run docker compose --profile db
it indicates correctly to run only the db
service [Running 1/0
]. However, the app
is also "attached".
How can I prevent the app
being attached?
docker compose down
)? I.e. were all containers really stopped?down
ed the containers.