Hi, it seems I’m unable to run 3.0 in docker. I just upgraded from 2.5.1 and always get connection reset by peer.
version: '2'
services:
mongodb:
image: mongo:3
volumes:
- mongodata:/data/db
restart: on-failure
elasticsearch:
image: elasticsearch:5.6.13
environment:
- http.host=0.0.0.0
- transport.host=localhost
- network.host=0.0.0.0
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
volumes:
- elasticdata:/usr/share/elasticsearch/data
restart: on-failure
graylog:
image: graylog/graylog:3.0
environment:
- GRAYLOG_PASSWORD_SECRET=***
- GRAYLOG_ROOT_PASSWORD_SHA2=***
- GRAYLOG_HTTP_BIND_ADDRESS=127.0.0.1:9000
- GRAYLOG_HTTP_EXTERNAL_URI=https://droplet.url/
restart: on-failure
links:
- mongodb:mongo
- elasticsearch
depends_on:
- mongodb
- elasticsearch
ports:
- 9000:9000
- 514:514
- 514:514/udp
- 12201:12201
- 12201:12201/udp
volumes:
elasticdata:
mongodata:
Nginx conf:
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
proxy_pass http://localhost:9000;
proxy_redirect http://localhost:9000 https://droplet.url;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 90;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Graylog-Server-URL http://$server_name;
proxy_cache_bypass $http_upgrade;
}
curl -v localhost:9000
* Rebuilt URL to: localhost:9000/
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 9000 (#0)
> GET / HTTP/1.1
> Host: localhost:9000
> User-Agent: curl/7.58.0
> Accept: */*
>
* Recv failure: Connection reset by peer
* stopped the pause stream!
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer
Nginx error log says practically the same thing as the curl when i try to open the url in browser.
Is by any chance the documentation not up to date? I already noticed that there is different format for the bind address, which results in container not starting if used from the docs.
Any help appreciated, lost about two hours already on this.