initial load

This commit is contained in:
Steve Waterworth
2021-03-17 17:15:23 +00:00
parent e90ebb9e33
commit 4c03be5d1e

34
fluentd/Docker/README.md Normal file
View File

@@ -0,0 +1,34 @@
# Configuration
Edit `setenv.sh`, set `IMAGE_NAME` to the repository, image and tag where you want to save the image. Pushing the image is not required when just running locally.
Build the image with the `build.sh` script.
Edit `humio.conf` setting the parameters to match either your Humio account or Elasticsearch instance. See the [fluentd documentation](https://docs.fluentd.org/output/elasticsearch) and/or [Humio documentation](https://docs.humio.com/docs/ingesting-data/data-shippers/fluentd/) for details.
Start `fluentd` in a Docker container using the `run.sh` script.
## Docker Compose
To have all the containers in Stan's Robot Shop use fluentd for logging, the `docker-compose.yaml` needs to be edited. Change the logging section at the top of the file.
```yaml
services:
mongodb:
build:
context: mongo
image: ${REPO}/rs-mongodb:${TAG}
networks:
- robto-shop
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
tag: "{{.ImageName}}"
redis:
```
If Robot Shop is already running, shut it down `docker-compose down`
Start Robot Shop with `docker-compose up -d`. It takes a few minutes to start, after that check eith Humio or ELK for log entries.