Skip to content

Commit acc7c02

Browse files
committed
update fluentbit docs to remove ports
1 parent a8cfa12 commit acc7c02

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

docs/send-data/fluent-bit.mdx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -233,25 +233,21 @@ Replace `$DATASET` with your Axiom dataset name and `$API_TOKEN` with your Axiom
233233

234234
### Create Docker Compose file (docker-compose.yaml)
235235

236-
Ensure the `volumes` section correctly maps the `fluent-bit.conf` file to `/fluent-bit/etc/fluent-bit.conf` inside the container.
236+
Ensure the `volumes` section correctly maps the `fluent-bit.conf` file to `/fluent-bit/etc/fluent-bit.conf` inside the container with read-only access.
237237

238238
```yaml
239239
version: '3'
240240

241241
services:
242-
243242
fluentbit:
244243
image: fluent/fluent-bit:latest
245244
container_name: fluent-bit
246-
user: root
245+
user: root # Required for accessing host log files
247246
volumes:
248-
- ./fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf
249-
- /var/lib/docker/containers:/opt/docker-container-logs
247+
- ./fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf:ro
248+
- /var/lib/docker/containers:/opt/docker-container-logs:ro
250249
environment:
251250
- AXIOM_HOSTNAME=axiom
252-
ports:
253-
- "24224:24224"
254-
- "24224:24224/udp"
255251
```
256252
257253
To start the Fluent Bit container using the Docker Compose configuration you've set up, execute the `docker-compose up -d` command.

0 commit comments

Comments
 (0)