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

Docker Compose version 1.29.2 Incompatible with .env.kibana.token #64

Closed
ScottFred opened this issue Mar 19, 2022 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@ScottFred
Copy link

Describe the bug
The README.md says that this repo is compatible with Docker Compose version 1.29.2, but I found that this version of Docker compose is sensitive to white-space in .env files. This is a known Docker Compose issue and has been resolved in later versions.

When starting elastdocker with docker-compose up, a warning message will appear on the command line that says, "WARNING: Python-dotenv could not parse statement starting at line 1". This happens because the secrets/.env.kibana.token file has been created during the make setup to be written in a way that is not compatible with Docker Compose 1.29.2 because it has whitespace and uses a colon, instead of an equal sign with no white-space.

KIBANA_SERVICE_ACCOUNT_TOKEN: <token>

If this environment file is re-written in the following way, Docker Compose 1.29.2 is able to read this environment file:

KIBANA_SERVICE_ACCOUNT_TOKEN=<token>

So, the README.md file should be modified so that it shows that this repo is only compatible with later versions of Docker Compose, or fix the .env.kibana.token file to replace the ": " with an equal sign "=".

To Reproduce
Steps to reproduce the behavior:

  1. Using Docker Compose 1.29.2: docker-compose up
  2. See displayed on command line: "WARNING: Python-dotenv could not parse statement starting at line 1".

Expected behavior
No WARNING message should be present when starting via docker-compose up

Desktop (please complete the following information):

  • OS: CentOS 7.x
  • Docker Compose, version 1.29.2
@ScottFred ScottFred added the bug Something isn't working label Mar 19, 2022
@sherifabdlnaby
Copy link
Owner

Hello, I believe this was fixed by #63 ?

@ScottFred
Copy link
Author

Sorry! You're right! Thanks providing this great repo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants