If you want to run docker-compose up and leave the process running without being attached to your terminal, you can run it in detached mode with docker-compose up -d.
https://docs.docker.com/compose/reference/up/
After doing so, you‘d have to use docker-compose stop or docker-compose down to stop your running containers, since CTRL+C won‘t kill them.