diff options
author | Ben Schmitz <ben.schmitz@kennasecurity.com> | 2020-05-06 23:14:25 +0200 |
---|---|---|
committer | Ryan Petrello <rpetrell@redhat.com> | 2020-06-16 14:29:43 +0200 |
commit | ea175ac5b64c3f8a0750e2996cf5e0479e267562 (patch) | |
tree | be89465a5284c4854674e866c4804e446c00988f | |
parent | Merge pull request #7343 from shanemcd/struggles (diff) | |
download | awx-ea175ac5b64c3f8a0750e2996cf5e0479e267562.tar.xz awx-ea175ac5b64c3f8a0750e2996cf5e0479e267562.zip |
Allows for docker logger support
-rw-r--r-- | installer/inventory | 7 | ||||
-rw-r--r-- | installer/roles/local_docker/templates/docker-compose.yml.j2 | 12 |
2 files changed, 19 insertions, 0 deletions
diff --git a/installer/inventory b/installer/inventory index 0c31c78012..85a875eb0a 100644 --- a/installer/inventory +++ b/installer/inventory @@ -155,3 +155,10 @@ secret_key=awxsecret # Docker compose explicit subnet. Set to avoid overlapping your existing LAN networks. #docker_compose_subnet="172.17.0.1/16" +# +# Allow for different docker logging drivers +# By Default; the logger will be json-file, however you can override +# that by uncommenting the docker_logger below. +# Be aware that journald may rate limit your log messages if you choose it. +# See: https://docs.docker.com/config/containers/logging/configure/ +# docker_logger=journald diff --git a/installer/roles/local_docker/templates/docker-compose.yml.j2 b/installer/roles/local_docker/templates/docker-compose.yml.j2 index eaa166a0ab..aab318ec77 100644 --- a/installer/roles/local_docker/templates/docker-compose.yml.j2 +++ b/installer/roles/local_docker/templates/docker-compose.yml.j2 @@ -68,6 +68,10 @@ services: http_proxy: {{ http_proxy | default('') }} https_proxy: {{ https_proxy | default('') }} no_proxy: {{ no_proxy | default('') }} + {% if docker_logger is defined %} + logging: + driver: {{ docker_logger }} + {% endif %} task: image: {{ awx_docker_actual_image }} @@ -138,6 +142,10 @@ services: volumes: - "{{ docker_compose_dir }}/redis.conf:/usr/local/etc/redis/redis.conf:ro" - "{{ docker_compose_dir }}/redis_socket:/var/run/redis/:rw" + {% if docker_logger is defined %} + logging: + driver: {{ docker_logger }} + {% endif %} {% if pg_hostname is not defined %} postgres: @@ -154,6 +162,10 @@ services: http_proxy: {{ http_proxy | default('') }} https_proxy: {{ https_proxy | default('') }} no_proxy: {{ no_proxy | default('') }} + {% if docker_logger is defined %} + logging: + driver: {{ docker_logger }} + {% endif %} {% endif %} {% if docker_compose_subnet is defined %} |