Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Docker stack deploy settings are ignored on Docker CE v17.12 #13

Open
maxim-ge opened this issue Jan 9, 2018 · 2 comments
Open

Docker stack deploy settings are ignored on Docker CE v17.12 #13

maxim-ge opened this issue Jan 9, 2018 · 2 comments

Comments

@maxim-ge
Copy link

maxim-ge commented Jan 9, 2018

All values in this command will be ignored:

ADMIN_USER=admin \
ADMIN_PASSWORD=admin \
SLACK_URL=https://hooks.slack.com/services/TOKEN \
SLACK_CHANNEL=devops-alerts \
SLACK_USER=alertmanager \
docker stack deploy -c docker-compose.yml mon

Ref. e.g. "The same effect occurs without the env_file: .env line, or with "$FOOVAR" in the actual command.

Tested on this docker:

Client:
 Version:       17.12.0-ce
 API version:   1.35
 Go version:    go1.9.2
 Git commit:    c97c6d6
 Built: Wed Dec 27 20:11:19 2017
 OS/Arch:       linux/amd64

Server:
 Engine:
  Version:      17.12.0-ce
  API version:  1.35 (minimum version 1.12)
  Go version:   go1.9.2
  Git commit:   c97c6d6
  Built:        Wed Dec 27 20:09:53 2017
  OS/Arch:      linux/amd64
  Experimental: true

Does not work

@stefanprodan stefanprodan changed the title Settings are ignored Docker stack deploy settings are ignored on Docker CE v17.12 Jan 9, 2018
@Illydth
Copy link

Illydth commented Feb 27, 2018

Yea, I ended up having to bake the variables into the stack deploy file for it to work.

Admin User and Password should be able to come in via docker secrets. This would require swarmprom to implement a "from disk to ENV Var" method like other projects have done to support Docker Secrets...in essence, the secrets are written down to disk upon container boot...a process would have to run in the grafana container to pick those up from disk and write them into the environment before Grafana starts up.

Otherwise, at this point, I end up just securing the stack files and just hard coding the information into them, it's not as if passwords or slack channels are changing regularly.

@g13013
Copy link

g13013 commented Dec 20, 2019

@maxim-ge hi, did you manage to find a solution ?

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

No branches or pull requests

3 participants