Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project without database and webserver. Just PHP #6675

Closed
1 task done
claudiu-cristea opened this issue Nov 2, 2024 · 4 comments
Closed
1 task done

Project without database and webserver. Just PHP #6675

claudiu-cristea opened this issue Nov 2, 2024 · 4 comments

Comments

@claudiu-cristea
Copy link

claudiu-cristea commented Nov 2, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem?

I'm contributing to some PHP libraries that are just PHP, no database. Why firing up a DB container when I don'y need it. Also, the project could be a non-HTTP project. Why staring an Apache/Ngnix container?

Describe your solution

Allow this values in config YAML:

database: none
webserver_type: none

For the 2nd, it might need to separate the PHP & Webserver containers

Describe alternatives

No response

Additional context

No response

@rfay
Copy link
Member

rfay commented Nov 3, 2024

Please use
omit_containers: [db]

See https://ddev.readthedocs.io/en/stable/users/configuration/config/#omit_containers

I don't expect to be stopping nginx or not installing it, but you can certainly ignore its existence :)

@rfay rfay closed this as completed Nov 3, 2024
@tr33m4n
Copy link

tr33m4n commented Mar 15, 2025

Hi @rfay

I also believe this would be a nice feature to have. I maintain a lot of Modules for Magento as well as some projects that have no need for a web server or are just CLI commands. Being able to run their test suites or a CLI command locally without having to spin up a web server would be much more elegant. Unless you know of a nifty workaround?

Thanks

@tr33m4n
Copy link

tr33m4n commented Mar 15, 2025

@rfay Apologies, I think this is ultimately doable with the configuration:

type: php
webserver_type: generic
omit_containers: [db]

I'm pretty new to ddev so just figuring things out! Thanks for a great dev experience

@rfay
Copy link
Member

rfay commented Mar 15, 2025

Yes, as of recent DDEV v1.24.3, you can have webserver_type: generic and omit_containers[db] and have everything requested here.

You might want type: generic as well, but I don't think it would change anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants