-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Bridge from docker-compose #1
Comments
Hi @sordina, It would be a straightforward development to support services in process-compose, but only from the execution point of view. Something along the lines: processes:
proc1:
command: "/path/to/proc"
services:
service1:
image: image-name:tag
ports:
- '4001:4000'
environment:
- 'ENV1=1'
volumes:
- '/vol1/:/vol' All of those can be expressed as simple commands to the docker daemon. Another thing that I am wondering about is the process <--> service name resolving. I might be wrong, but I think it will require some changes in the dockerd code. At this point, I am still trying to figure out the MVP set of features and to get as much feedback as possible on the current state of the tool. Currently, there are a lot of X marks (not implemented) in the planned list of features. I'll be glad to get more feedback and figure out if this is an MVP type of feature, a future plan, or a pivot. |
Thanks @F1bonacc1 great to hear your thoughts. |
initial implementation
I made a similar tool a while ago https://github.com/sordina/logody#logody but ended up not using it very much mainly because of this one feature that I wished would exist - interoperability with docker-compose.
Feel free to close this issue if it's beyond the scope of your project but I think it would be extremely useful and popular if you liked the idea.
In essence I wished that docker compose would be able to not only spin up dockerized processes, but also native processes and express them together in the same services section. You'd be able to have them networked by name and have their lifecycle managed by the docker-compose tool.
One way I imagine that this could be achieved is by having two programs:
This second program could be process-compose!
The main thing missing that would enable this is a network API for lifecycling processes. If this was present then it would be possible to create the bridge program to allow description of processes in its configuration to be communicated to the process-compose running on the host natively.
Anyway, just thought you might think the idea is interesting. As I mentioned, no worries if it is out of scope! Happy to discuss if you like.
The text was updated successfully, but these errors were encountered: