are there environment variables i can use to point...
# kolide
j
are there environment variables i can use to point to my sql server?
z
Yes — check out the infra docs
j
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
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
Awesome thanks @zwass