-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
env_file field in Logstash making impossible to use untouched Laradock project structure #3146
Comments
Hi 👋 this issue has been automatically marked as |
Stalebot is the most useful invention in human programmer's history. |
Hi 👋 this issue has been automatically marked as |
Okay stale bot, I will let you close this issue. |
Hi 👋 this issue has been automatically marked as |
Okay stale bot, I will let you close this issue. |
You should look at the relationship between the. env file and the Docker Compose instead of associating it with the logstash. --- From Baidu Translation. |
Referencing the entire |
Let me show you: ├── .env
├── docker-compose.yml
└── logstash
├── Dockerfile
├── config
│ └── logstash.yml
└── pipeline
└── .gitkeep
4 directories, 3 files The files in the logstash folder are from the laradock logstash folder. .env file content: ### ELK Stack ##################################################
ELK_VERSION=7.9.1 docker-compose.yml file content: logstash:
build:
context: ./logstash
args:
- ELK_VERSION=${ELK_VERSION}
volumes:
- './logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml'
- './logstash/pipeline:/usr/share/logstash/pipeline'
ports:
- '5001:5001'
environment:
LS_JAVA_OPTS: '-Xmx1g -Xms1g'
env_file:
- .env
networks:
- frontend
- backend
depends_on:
- elasticsearch You are welcome to try. |
Please understand the function of the .env file. The .env file is not required for logstash. |
Thank You for clarifying my issue! Removing it from Logstash configuration will make the entire Laradock configuration more easily adopted for delicate project structures. |
Yes, if you only need logstash, you can directly modify ${ELK_VERSION} in docker-compose. yml. |
Hi 👋 this issue has been automatically marked as |
I will wait until stalebot become sentient. |
Hi again 👋 we would like to inform you that this issue has been automatically |
I will wait until stalebot become sentient. |
Description:
I try to achieve the following project structure, where I keep Laradock in an untouched git submodule:
My
docker-compose.override.yml
looks like this:Lines in
.env
:I run Docker Compose with this command from
/my-project-folder
:I'm getting the following error, if I not deleting
env_file:
field from Laradock'sdocker-compose.yml
:Expected Behavior:
Is there any particular reason why
env_file:
presented indocker-compose.yml
explicitly? If it wasn't there, it would be much easier to create more delicate deployments to use Laradock as an untouched submodule.I think the reason why
env_file:
indocker-compose.override.yml
doesn't replace the field inlaradock/docker-compose.yml
, because simply extending the array with the new value:Context information:
Output of
git rev-parse HEAD
Output of
docker version
Output of
docker-compose version
System info: Mac, Windows or Linux. Include which disto/version
The text was updated successfully, but these errors were encountered: