https://github.com/osquery/osquery logo
#kolide
Title
# kolide
j

jaredcatkinson

03/05/2019, 4:22 PM
are there environment variables i can use to point to my sql server?
z

zwass

03/05/2019, 4:25 PM
Yes — check out the infra docs
j

jaredcatkinson

03/05/2019, 4:30 PM
cool, so it looks like the fastest bet is to use environment variables with the container when it is run:
Copy code
KOLIDE_MYSQL_ADDRESS=127.0.0.1:3306 \
KOLIDE_MYSQL_DATABASE=kolide \
KOLIDE_MYSQL_USERNAME=root \
KOLIDE_MYSQL_PASSWORD=toor \
KOLIDE_REDIS_ADDRESS=127.0.0.1:6379 \
KOLIDE_SERVER_CERT=/tmp/server.cert \
KOLIDE_SERVER_KEY=/tmp/server.key \
KOLIDE_LOGGING_JSON=true \
KOLIDE_AUTH_JWT_KEY=changeme \
/usr/bin/fleet serve
is there a default location that the config file will be read from? In case I want to use a docker volume to share that from my host into the container? I see that you can specify the location with the
serve
command.
z

zwass

03/05/2019, 4:46 PM
There is no default path to the config file -- You must specify the path by flag if you want config loaded from a file.
With docker it is quite clean/convenient to set the options in env vars
j

jaredcatkinson

03/05/2019, 6:55 PM
Awesome thanks @zwass
3 Views