Comments (7)
I added an example of a workaround which shows how to disable a service.
version: '2.1'
services:
pgsql: #example that disables a service
image: alpine
entrypoint: []
from devilbox.
Something I am still trying to find a solution for.
The docker-compose.yml
file does not have conditions and i still don't know a good way for how to get this working. This would obviously the ultimate goal ;-)
from devilbox.
Selectively loading docker containers is not possible due to the limitations of docker-compose.
I have however separated the container loading into two types:
- Base stack (httpd, php, mysql and postgresql)
- Optional stack (all of the above and redis (others coming soon).
This will be enabled by PR #44
from devilbox.
I finally found a way to make it optional.
Instead of having to define multiple docker-compose.xxx.yml
files, there will be only one docker-compose.yml
and you can choose during startup via the following examples:
# Load all
$ docker-compose up
# Load only httpd and php
$ docker-compose up httpd php
# Load httpd, php, mysql and redis
$ docker-compose up httpd php mysql redis
However, for this to work, there is going to be some rewrite necessary. Hope I can get this merged soon.
Edit: Going to adjust the title for better searchability
from devilbox.
@GiorgosK Now fixed in new release
from devilbox.
@keithy there's no need to comment out a specific service as you can simply specify in the startup-command which of the services you want to spin up.
docker-compose up httpd php bind mysql
See here for more information: https://devilbox.readthedocs.io/en/latest/getting-started/start-the-devilbox.html#start-some-container
from devilbox.
Understood, just offering an alternative.
from devilbox.
Related Issues (20)
- No Host DNS record found HOT 1
- [Bug]: AutoDNS not working on MacOS Ventura 13.5.2 HOT 11
- Getting http: invalid Host header while running shell.sh HOT 5
- [Bug]: unable to access internet from php container HOT 3
- [Feature]: Update timezone database
- [Docs]: sqlsrv with new arm64 (Apple M1/M2)
- [Howto]: Use PHP and Vite simultaneously in the same project HOT 1
- [Howto]: multitenancy HOT 2
- [Feature]: skipping projects HOT 1
- [Bug]: Comment in project `nginx.yml` causes invalid error message in /vhosts.php
- [Feature]: DENO and BUN It's a good idea?
- [Bug]: Cannot access internet - DNS resolution incorrect HOT 3
- [Feature]: Make PHP 8.3 available HOT 10
- [Feature]: Add FrankenPHP
- [Docs]: Nginx startup error (server_names_hash_bucket_size) HOT 5
- [Feature]: Adding Castor
- Multiple PHP versions running simultaneously HOT 2
- [Bug]: When Xdebug Enabled get 400 Bad Request AH01075 proxy_fcgi:error HOT 2
- 504 Gateway Time-out HOT 2
- [Bug]: dvl.to cannot be resolved HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devilbox.