# New Graylog Install - Docker

**URL:** <https://community.graylog.org/t/new-graylog-install-docker/32080>\
**Category:** Graylog Central (peer support)\
**Created:** [April 10, 2024, 12:07pm UTC](https://community.graylog.org/t/new-graylog-install-docker/32080 "2024-04-10T12:07:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kwiz](https://avatars.discourse-cdn.com/v4/letter/k/b782af/32.png) [@kwiz](https://community.graylog.org/u/kwiz)\
**Post date:** [April 10, 2024, 12:07pm UTC](https://community.graylog.org/t/new-graylog-install-docker/32080/1 "2024-04-10T12:07:47Z")

</div>

Before you post: Your responses to these questions will help the community help you. Please complete this template if you’re asking a support question.  
**Don’t forget to select tags to help index your topic!**

**1. Describe your incident:**  
I’m attempting to install Graylog via docker compose. I get to the login screen and point of provisioning the certificate, but it fails to connect to the datanode instance.

**2. Describe your environment:**

- OS Information: Ubuntu Server

- Package Version: 22.04 LTS

- Service logs, configurations, and environment variables:

version: “3.8”

# For DataNode setup, graylog starts with a preflight UI, this is a change from just using OpenSearch/Elasticsearch.

# Please take a look at the README at the top of this repo or the regular docs for more info.

services:  
mongodb:  
image: “mongo:5.0”  
volumes:  
- “mongodb\_data:/data/db”  
networks:  
- graylog  
restart: “on-failure”

# For DataNode setup, graylog starts with a preflight UI, this is a change from just using OpenSearch/Elasticsearch.

# Please take a look at the README at the top of this repo or the regular docs for more info.

datanode:  
image: “${DATANODE\_IMAGE:-graylog/graylog-datanode:5.2}”  
hostname: “localhost”  
environment:  
GRAYLOG\_DATANODE\_NODE\_ID\_FILE: “/var/lib/graylog-datanode/node-id”  
GRAYLOG\_DATANODE\_PASSWORD\_SECRET: “${GRAYLOG\_PASSWORD\_SECRET}”  
GRAYLOG\_DATANODE\_ROOT\_PASSWORD\_SHA2: “${GRAYLOG\_ROOT\_PASSWORD\_SHA2}”  
GRAYLOG\_DATANODE\_MONGODB\_URI: “mongodb://mongodb:27017/graylog”  
ulimits:  
memlock:  
hard: -1  
soft: -1  
nofile:  
soft: 65536  
hard: 65536  
ports:  
- “8999:8999/tcp” # DataNode API  
- “9200:9200/tcp”  
- “9300:9300/tcp”  
volumes:  
- “graylog-datanode:/var/lib/graylog-datanode”  
networks:  
- graylog  
restart: “on-failure”

graylog:  
hostname: “server”  
image: “${GRAYLOG\_IMAGE:-graylog/graylog:5.2}”  
depends\_on:  
mongodb:  
condition: “service\_started”  
entrypoint: “/usr/bin/tini – /docker-entrypoint.sh”  
environment:  
GRAYLOG\_NODE\_ID\_FILE: “/usr/share/graylog/data/data/node-id”  
GRAYLOG\_PASSWORD\_SECRET: “${GRAYLOG\_PASSWORD\_SECRET}”  
GRAYLOG\_ROOT\_PASSWORD\_SHA2: “${GRAYLOG\_ROOT\_PASSWORD\_SHA2}”  
GRAYLOG\_HTTP\_BIND\_ADDRESS: “0.0.0.0:9000”  
GRAYLOG\_HTTP\_EXTERNAL\_URI: “[http://localhost:9000/](http://localhost:9000/)”  
GRAYLOG\_MONGODB\_URI: “mongodb://mongodb:27017/graylog”  
ports:  
- “5044:5044/tcp” # Beats  
- “5140:5140/udp” # Syslog  
- “5140:5140/tcp” # Syslog  
- “5555:5555/tcp” # RAW TCP  
- “5555:5555/udp” # RAW TCP  
- “9000:9000/tcp” # Server API  
- “12201:12201/tcp” # GELF TCP  
- “12201:12201/udp” # GELF UDP  
#- “10000:10000/tcp” # Custom TCP port  
#- “10000:10000/udp” # Custom UDP port  
- “13301:13301/tcp” # Forwarder data  
- “13302:13302/tcp” # Forwarder config  
volumes:  
- “graylog\_data:/usr/share/graylog/data/data”  
- “graylog\_journal:/usr/share/graylog/data/journal”  
networks:  
- graylog  
restart: “on-failure”

volumes:  
mongodb\_data:  
graylog-datanode:  
graylog\_data:  
graylog\_journal:

networks:  
graylog:  
driver: bridge  
ipam:  
config:  
subnet: 172.18.0.0/24  
**3. What steps have you already taken to try and solve the problem?**  
I’ve tried changing the hostname in the docker compose, adding a specific network for connectivity.

**4. How can the community help?**  
I need help getting graylog up and running successfully.

**Helpful Posting Tips:** [Tips for Posting Questions that Get Answers](https://community.graylog.org/t/tips-for-posting-questions-that-get-answers/21828) [Hold down CTRL and link on link to open tips documents in a separate tab]

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [April 24, 2024, 12:08pm UTC](https://community.graylog.org/t/new-graylog-install-docker/32080/2 "2024-04-24T12:08:04Z")

</div>

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