Skip to content

Commit 6e61ddd

Browse files
committed
chore: update docker images
1 parent 6a0f2d9 commit 6e61ddd

File tree

2 files changed

+62
-26
lines changed

2 files changed

+62
-26
lines changed

docs/plugins/logging/gelf.md

Lines changed: 59 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ Graylog is a great option for Developers. We find that there are generally 2 cat
1111

1212
## Setup
1313

14-
15-
1614
## Local Debugging
1715

1816
Below is a sample docker file. You can use this to create a local Graylog stack using the [Graylog Docker image](https://hub.docker.com/r/graylog/graylog/). This can be useful for testing application logs locally. Requires [Docker](https://www.docker.com/get-docker) and Docker Compose.
@@ -22,37 +20,77 @@ Below is a sample docker file. You can use this to create a local Graylog stack
2220
- Credentials: admin/admin
2321
- Create a UDP input on port 12201 and set `GelfLoggerOptions.Host` to `localhost`.
2422

23+
> [!NOTE]
24+
> The username and password are both `admin`. This should only be used for local testing. If putting this into production be sure to update the password.
25+
2526
```docker
2627
services:
27-
mongo:
28-
image: mongo:4.2
28+
mongodb:
29+
image: mongo:4.4
30+
container_name: graylog-mongodb
31+
restart: always
32+
volumes:
33+
- /docker/graylog/data/mongodb:/data/db
34+
networks:
35+
- graylog-network
36+
2937
elasticsearch:
30-
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.0
38+
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.9
39+
container_name: graylog-elasticsearch
40+
restart: always
3141
environment:
32-
- http.host=0.0.0.0
33-
- transport.host=localhost
42+
- discovery.type=single-node
43+
- ES_JAVA_OPTS=-Xms1g -Xmx1g
44+
- xpack.security.enabled=false
45+
- xpack.monitoring.enabled=false
46+
- xpack.ml.enabled=false
3447
- network.host=0.0.0.0
35-
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
3648
ulimits:
3749
memlock:
3850
soft: -1
3951
hard: -1
52+
volumes:
53+
- /docker/graylog/data/elasticsearch:/usr/share/elasticsearch/data
54+
networks:
55+
- graylog-network
56+
4057
graylog:
41-
image: graylog/graylog:4.0
42-
environment:
43-
- GRAYLOG_PASSWORD_SECRET="!ux*lAfQVjaRT8iI"
44-
- GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
45-
- GRAYLOG_HTTP_EXTERNAL_URI=http://localhost:9000/
46-
entrypoint: /usr/bin/tini -- wait-for-it elasticsearch:9200 -- /docker-entrypoint.sh
58+
image: graylog/graylog:4.3
59+
container_name: graylog
4760
restart: always
4861
depends_on:
49-
- mongo
62+
- mongodb
5063
- elasticsearch
64+
environment:
65+
- GRAYLOG_PASSWORD_SECRET=somepasswordpepper
66+
# Password: "admin"
67+
- GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
68+
- GRAYLOG_HTTP_EXTERNAL_URI=http://127.0.0.1:9000/
69+
- GRAYLOG_ELASTICSEARCH_HOSTS=http://elasticsearch:9200
70+
- GRAYLOG_MONGODB_URI=mongodb://mongodb:27017/graylog
5171
ports:
52-
- 9000:9000
53-
- 1514:1514
54-
- 1514:1514/udp
55-
- 12201:12201
56-
- 12201:12201/udp
57-
- 12202:12202
72+
# Graylog web interface and REST API
73+
- "9000:9000/tcp"
74+
# Beats
75+
- "5044:5044/tcp"
76+
# Syslog TCP
77+
- "5140:5140/tcp"
78+
# Syslog UDP
79+
- "5140:5140/udp"
80+
# GELF TCP
81+
- "12201:12201/tcp"
82+
# GELF UDP
83+
- "12201:12201/udp"
84+
# Forwarder data
85+
- "13301:13301/tcp"
86+
# Forwarder config
87+
- "13302:13302/tcp"
88+
volumes:
89+
- /docker/graylog/data/graylog:/usr/share/graylog/data/journal
90+
networks:
91+
- graylog-network
92+
93+
networks:
94+
graylog-network:
95+
driver: bridge
5896
```

docs/plugins/logging/raygun.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ Raygun offers a free Open Source version for Crash Detection that can be run in
1919
To get started you can copy the following docker compose sample. You can set the localpath for the volumes to persist the crash data over time and ensure that the downloaded Ollama models are persisted and do not need to be downloaded again.
2020

2121
```docker
22-
version: '3.8'
23-
2422
services:
2523
raygun-aspire-portal:
2624
image: raygunowner/raygun-aspire-portal:latest
@@ -31,7 +29,7 @@ services:
3129
- "8080:8080"
3230
restart: always
3331
volumes:
34-
- /localpath/raygun/errors:/app/raygun/errors
32+
- /docker/raygun/data/errors:/app/raygun/errors
3533
depends_on:
3634
- ollama-service # Ensure Ollama service starts before this container
3735
@@ -40,7 +38,7 @@ services:
4038
container_name: ollama_local_aier
4139
restart: always
4240
volumes:
43-
- /localpath/ollama:/root/.ollama # Mount local directory to container for data persistence
41+
- /docker/raygun/data/ollama:/root/.ollama # Mount local directory to container for data persistence
4442
```
4543

4644
To use Raygun for local development with your Docker image, you can use the special extension as shown below:
@@ -52,4 +50,4 @@ container.UsePrismLogging(logging =>
5250

5351
## Prism.Essentials Integration
5452

55-
The Raygun Implementation of the Logger makes reference to the [Prism.Plugin.Essentials](xref:Plugins.Essentials.GettingStarted) library. This allows us to dynamically check if various Essentials interfaces have been registered. If they have we automatically tailor the Logger to include offline support with request caching. Additionally we will automatically update the configuration to make use of the [Application Context](xref:Plugins.Essentials.AppContext) from Essentials.
53+
The Raygun Implementation of the Logger makes reference to the [Prism.Plugin.Essentials](xref:Plugins.Essentials.GettingStarted) library. This allows us to dynamically check if various Essentials interfaces have been registered. If they have we automatically tailor the Logger to include offline support with request caching. Additionally we will automatically update the configuration to make use of the [Application Context](xref:Plugins.Essentials.AppContext) from Essentials. In order to enable sending logs in the background with the offline store, be sure to Register Prism.Plugin.Essentials first.

0 commit comments

Comments
 (0)