Docker-compose install... where is the server.conf file?

Anyone here install graylog via docker-compose? Graylog2/docker-compose

The wiki has info where to find the server.conf file in package installs but makes no mention about docker at all. Post install there is no server.conf file inside the docker volumes…

https://go2docs.graylog.org/5-0/setting_up_graylog/server.conf.html?tocpath=Setting%20up%20Graylog|Getting%20Started|Initial%20Configuration%20Settings|_____1

root@DietPi:/mnt/dietpi_userdata/docker-data/volumes# ls -lah graylog_graylog_data/_data/
total 8.0K
drwxr-x--- 2 1100 1100 4.0K Apr  5 16:40 .
drwx-----x 3 root root 4.0K Apr 23 19:34 ..
root@DietPi:/mnt/dietpi_userdata/docker-data/volumes# ls -lah graylog_graylog_journal/_data/
total 20K
drwxr-x--- 3 1100 1100 4.0K Apr 23 23:42 .
drwx-----x 3 root root 4.0K Apr 23 19:34 ..
-rw-r--r-- 1 1100 1100    0 Apr 23 20:03 .lock
-rw-r--r-- 1 1100 1100    3 Apr 23 23:43 graylog2-committed-read-offset
drwxr-xr-x 2 1100 1100 4.0K Apr 23 23:07 messagejournal-0
-rw-r--r-- 1 1100 1100   25 Apr 23 23:42 recovery-point-offset-checkpoint
root@DietPi:/mnt/dietpi_userdata/docker-data/volumes# ls -lah graylog_os_data/_data/
total 32K
drwxr-xr-x 3 dietpi dietpi 4.0K Apr 23 19:34 .
drwx-----x 3 root   root   4.0K Apr 23 19:34 ..
-rw-rw-r-- 1 dietpi dietpi    5 Apr 23 20:02 batch_metrics_enabled.conf
-rw-rw-r-- 1 dietpi dietpi    5 Apr 23 20:02 logging_enabled.conf
drwxrwxr-x 3 dietpi dietpi 4.0K Apr 23 19:34 nodes
-rw-rw-r-- 1 dietpi dietpi    5 Apr 23 20:02 performance_analyzer_enabled.conf
-rw-rw-r-- 1 dietpi dietpi    5 Apr 23 20:02 rca_enabled.conf
-rw-rw-r-- 1 dietpi dietpi    5 Apr 23 20:02 thread_contention_monitoring_enabled.conf

This is a fresh install, all I did was ‘docker compose up’ and now I am trying to follow this tutorial on wazuh integration which requires server.conf greylog changes… Part 2. Graylog Install — Log Ingestion | by SOCFortress | Medium

In docker you use all the same config commands, you can just add them as environment variables in your docker-compose.yml file by prepending GRAYLOG_ to the config entry, so:

      graylog:
        restart: "unless-stopped"
        image: graylog/graylog-enterprise:5.0.5
        environment:
          - GRAYLOG_PASSWORD_SECRET=1234567890123456
          - GRAYLOG_ROOT_PASSWORD_SHA2=1234DEADBEEF
          - GRAYLOG_HTTP_EXTERNAL_URI=http://127.0.0.1:9000/
          - GRAYLOG_HTTP_ENABLE_CORS=true
          - GRAYLOG_METRICS_PROMETHEUS_ENABLED=true
          - GRAYLOG_ELASTICSEARCH_HOSTS=http://opensearch:9200
          - GRAYLOG_SKIP_PREFLIGHT_CHECKS=true
          - GRAYLOG_INTEGRATIONS_SCRIPTS_DIR=/usr/share/graylog/scripts

hey @TheLinuxGuy

The configuration file should be called graylog.conf. you can use locate , etc… to find it. But you best bet would be using env variable and/or mounting it in volume which the config file should be locate.

You can also mount the config file.

graylog:      
    volumes:      
      -    graylog_example.conf :/usr/share/graylog/data/config/graylog.conf

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.