forked from kolide/fleet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker-compose QoL improvements (kolide#2319)
* Use YAML anchors to avoid repeating config blocks * Use docker volumes to persist data for mysql * Allow setting `FLEET_SERVER` (fixes kolide#2127) when using the docker-compose file to spin up multiple osquery clients
- Loading branch information
Showing
5 changed files
with
69 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
version: '2' | ||
|
||
x-default-settings: | ||
extra_hosts: &linux-extra-hosts | ||
# Add host.docker.internal record to /etc/hosts of the containers. This is | ||
# added on Docker for Mac by default, but needs to be added by Linux users. | ||
- "host.docker.internal:${DOCKER_HOST:-172.17.0.1}" | ||
|
||
services: | ||
ubuntu14-osquery: | ||
extra_hosts: *linux-extra-hosts | ||
|
||
ubuntu16-osquery: | ||
extra_hosts: *linux-extra-hosts | ||
|
||
centos7-osquery: | ||
extra_hosts: *linux-extra-hosts | ||
|
||
centos6-osquery: | ||
extra_hosts: *linux-extra-hosts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,43 @@ | ||
|
||
--- | ||
version: '2' | ||
|
||
x-default-settings: | ||
volumes: &default-volumes | ||
- ./kolide.crt:/etc/osquery/kolide.crt | ||
- ./example_osquery.flags:/etc/osquery/osquery.flags | ||
environment: &default-environment | ||
ENROLL_SECRET: "${ENROLL_SECRET:?ENROLL_SECRET must be set for server authentication}" | ||
command: &default-command osqueryd --flagfile=/etc/osquery/osquery.flags --tls_hostname=${FLEET_SERVER:-host.docker.internal:8080} | ||
ulimits: &default-ulimits | ||
core: | ||
hard: 1000000000 | ||
soft: 1000000000 | ||
|
||
services: | ||
ubuntu14-osquery: | ||
image: "kolide/osquery:${KOLIDE_OSQUERY_VERSION}" | ||
volumes: | ||
- ./kolide.crt:/etc/osquery/kolide.crt | ||
- ./example_osquery.flags:/etc/osquery/osquery.flags | ||
environment: | ||
ENROLL_SECRET: "${ENROLL_SECRET}" | ||
command: osqueryd --flagfile=/etc/osquery/osquery.flags | ||
ulimits: | ||
core: | ||
hard: 1000000000 | ||
soft: 1000000000 | ||
volumes: *default-volumes | ||
environment: *default-environment | ||
command: *default-command | ||
ulimits: *default-ulimits | ||
|
||
ubuntu16-osquery: | ||
image: "kolide/ubuntu16-osquery:${KOLIDE_OSQUERY_VERSION}" | ||
volumes: | ||
- ./kolide.crt:/etc/osquery/kolide.crt | ||
- ./example_osquery.flags:/etc/osquery/osquery.flags | ||
environment: | ||
ENROLL_SECRET: "${ENROLL_SECRET}" | ||
command: osqueryd --flagfile=/etc/osquery/osquery.flags | ||
ulimits: | ||
core: | ||
hard: 1000000000 | ||
soft: 1000000000 | ||
volumes: *default-volumes | ||
environment: *default-environment | ||
command: *default-command | ||
ulimits: *default-ulimits | ||
|
||
centos7-osquery: | ||
image: "kolide/centos7-osquery:${KOLIDE_OSQUERY_VERSION}" | ||
volumes: | ||
- ./kolide.crt:/etc/osquery/kolide.crt | ||
- ./example_osquery.flags:/etc/osquery/osquery.flags | ||
environment: | ||
ENROLL_SECRET: "${ENROLL_SECRET}" | ||
command: osqueryd --flagfile=/etc/osquery/osquery.flags | ||
ulimits: | ||
core: | ||
hard: 1000000000 | ||
soft: 1000000000 | ||
volumes: *default-volumes | ||
environment: *default-environment | ||
command: *default-command | ||
ulimits: *default-ulimits | ||
|
||
centos6-osquery: | ||
image: "kolide/centos6-osquery:${KOLIDE_OSQUERY_VERSION}" | ||
volumes: | ||
- ./kolide.crt:/etc/osquery/kolide.crt | ||
- ./example_osquery.flags:/etc/osquery/osquery.flags | ||
environment: | ||
ENROLL_SECRET: "${ENROLL_SECRET}" | ||
command: osqueryd --flagfile=/etc/osquery/osquery.flags | ||
ulimits: | ||
core: | ||
hard: 1000000000 | ||
soft: 1000000000 | ||
volumes: *default-volumes | ||
environment: *default-environment | ||
command: *default-command | ||
ulimits: *default-ulimits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters