-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Feature: inline file #3538
Comments
Would also help not over-engineering something. I have to use Docker configs for snippets of configuration when really it would be easier/portable in a single YAML file. So for configs you could have something as follows:
|
@shin- Hi, any solution ? |
@Fridus Check out https://github.com/docker/app ! |
Issue grooming: I think I agree with @shin- that this sounds more like a docker-app thing. |
+1 I'd like that, too! |
Me too here :( |
Inline files would also make it much easier to run docker compose on a remote host. Since docker app isn't a thing anymore, maybe reconsider closing this issue? |
Would like that too... k8s offers that as well, would like to see it in docker compose. |
Bumping this, hard to believe it's not a thing, would be extremely useful. |
+1. This would be useful. |
Any info on this? |
Please upvote if you'd like to see this implemented |
This is available in name: config-inline
services:
service:
image: ubuntu
entrypoint: cat
command: /path/to/config.txt
configs:
- source: config.txt
target: /path/to/config.txt
configs:
config.txt:
content: |
strawberry fields forever Output:
|
This is great, and will make many deployments much simpler and cleaner. Thank you @ndeloof! |
This is super great! I've been waiting for this for so long :D I've updated compose and works great. However the I was a bit disappointed to discover that the spec does not yet seem to be available on swarm deploy, on engine |
Hello @sergioisidoro |
Thanks @glours , I opened a issue in a sort of hail Mary :) from what I see from Mirantis' website, their focus seems to be mainly on Kubernetes, with no mention of swarm as a solution. I'm afraid this is going towards a dead end. |
I create a lot of compose file that I hope are useful for the community.
I'd like to find a way for docker to officially ship these compose files.
There is one issue that IMHO is blocking us of doing so, is the ability to ship a file in docker-compose.
Indeed, what distinguish a
piwik
from anownCloud
from aWordPress
compose file is only the nginx configuration.There are 3 way that I know to ship this configuration:
The first option: a file on the host:
The second option: the current inline way:
A bit dirty
The 3rd way: inline file
And so, I'm sure you see the value to have a proper way to add inline file.
The syntax could be similar to what cloudinit does.
With this, it would become easier to ship one compose file with everything included to get started an app!
The text was updated successfully, but these errors were encountered: