How to disable services/containers

Hello there! Is there any (hopefully easy, if not, its also ok) way to disable services? I had 17GB of free space available before installing devilbox, after deploying it through docker I got 8.6GB of free space available, that seems way too much for few containers. Also, for performance purposes I would like to disable some services like postgres, redis, mongo, memcached. It doesn’t make much sense to have two db engines: maria db and postgres running at the same time.

I could not find within the documentation any info regarding turning off/disabling services.

Thank you in advance!
Cheers!
Juan Pablo

Just specify what you want docker-compose -d up httpd php mysql dns (for example).

https://devilbox.readthedocs.io/en/latest/getting-started/start-the-devilbox.html#start-some-container

1 Like

Thanks, but that would be kinda annoying, specifying what services to run every single time you run Devilbox. There’s no config file where this can be configured?

I just put the command in a bash script with my default services under ~/bin/start_devilbox.sh and also added a script to kill and remove the containers and one to give me a shell in the php container from anywhere on the filesystem.

I think there’s a post where some people disabled services in the docker-compose.yml file but I didn’t want to do that. A simple one line script works for me. :slight_smile:

Thank you very much for your help! :slight_smile: