-
Notifications
You must be signed in to change notification settings - Fork 448
Remove Secrets and use Docker Volumes #76
base: master
Are you sure you want to change the base?
Conversation
There've been some issues relating to how stack-docker starts up stuff using the docker-compose image. * changing project names * volume mounts not working * some other issues regaring containers not starting. I've moved everything around and more use of docker volumes: * created certs volume, for storing the certs. Now all containers can mount that volume and have access to the certs. * created a config volume for each service * this mounts the config.yml for each service and also stores the keystore. These changes help process a lot of the permissions issues that were happening. This makes it a lot easer to clean up using a 'docker-compose down -v' and restart. known issues: * the setup script doesn't work as cleanly as I'd like and when trying execute it via a 'docker-compose -f setup/setup.yml run setup' the script exits early.
and update the setup command to be correct.
… into nick/docker-volumes
Here are the steps I tried (not completely working at this point);
That appears to run successfully and ends with;
I check what's running (elasticsearch and kibana are);
Then try to bring up the rest of the stack with;
|
@LeeDr what version of compose do you have? edit: fix name |
@LeeDr ALSO I also noticed that your The stack-docker repository makes the assumption that you're going to clone the repo into the same name as the repository is itself. If you're going to clone this project into a different directory name (such as
I'll update the readme to account for this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this change, caused the password not to be picked up.
stack-docker/scripts/setup-logstash.sh
Line 24 in 69b32c7
-d '{"password": "${ELASTIC_PASSWORD}"}' |
-d '{"password": "${ELASTIC_PASSWORD}"}'
setup-kibana.sh has it like this and does not produce a warning; image attached.
-d "{"password": "${ELASTIC_PASSWORD}"}"
@fxdgear I just ran this on 6.7.0 (the latest BC build) and it seemed to work fine.
It looks like that error caused elasticsearch to exit. |
I hacked the setup-elasticsearch.sh script to add some more debug logging like this; #!/bin/bash
configdir=/usr/share/elasticsearch/config
# Determine if x-pack is enabled
echo "Determining if x-pack is installed..."
echo "`ls /usr/share/elasticsearch/bin`"
if [[ -d /usr/share/elasticsearch/bin/x-pack ]]; then
echo "=== Yes we found bin/x-pack ==="
echo $ELASTIC_PASSWORD
if [[ -n "$ELASTIC_PASSWORD" ]]; then And that
I don't know if that means something is missing in the docker image, or if something changed in 7.0. I'll install a non-docker 7.0 stack and see. |
There've been some issues relating to how stack-docker starts up stuff using the docker-compose image.
I've moved everything around and more use of docker volumes:
These changes help process a lot of the permissions issues that were happening.
This makes it a lot easer to clean up using a 'docker-compose down -v' and restart.
known issues:
'docker-compose -f setup/setup.yml run setup' the script exits early.
closes: #73 #67 #65