-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improved README.md, added docker-compose-shipper example
- Loading branch information
Showing
10 changed files
with
120 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
About | ||
=== | ||
|
||
This `docker-compose` file spins up a [0x-mesh](https://github.com/0xProject/0x-mesh) with a preconfigured logging driver as well as a `fluentbit` logger which ships the logs to a ES-cluster running on minikube. | ||
|
||
To enable this example, we need to first port-forward the `elasticsearch-client` for it to be available | ||
|
||
## dockerhost container | ||
|
||
If running on MacOS you [cannot use the host network](https://docs.docker.com/network/network-tutorial-host/#prerequisites) hence a workaround using a forwarder. | ||
|
||
Refer to: https://github.com/qoomon/docker-host | ||
|
||
|
||
## TODOs | ||
|
||
- [ ] Add a remote and authenticated log-shipping example to the produciton cluster. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CAISIEi81s34n6VngHf7OsZs/YeWXXAKfj4VMdAcnJ5EPVxi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
version: '3' | ||
|
||
services: | ||
ganache: | ||
image: 0xorg/mesh-ganache-cli | ||
ports: | ||
- "8545:8545" | ||
mesh: | ||
image: 0xorg/mesh:latest | ||
logging: | ||
driver: fluentd | ||
options: | ||
fluentd-address: localhost:24224 | ||
volumes: | ||
- ./data:/usr/mesh/0x_mesh | ||
links: | ||
- ganache | ||
- fluentbit | ||
ports: | ||
- "8080:60557" | ||
- "3000:3000" | ||
environment: | ||
- ETHEREUM_NETWORK_ID=50 | ||
- ETHEREUM_RPC_URL=http://ganache:8545 | ||
- VERBOSITY=5 | ||
- RUN_TELEMETRY=true | ||
- BLOCK_POLLING_INTERVAL=5s | ||
fluentbit: | ||
image: fluent/fluent-bit:1.0.4 | ||
ports: | ||
- "24224:24224" | ||
command: /fluent-bit/bin/fluent-bit -c /fluent-bit/etc/fluent-bit.conf | ||
volumes: | ||
- ./fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf | ||
dockerhost: | ||
image: qoomon/docker-host | ||
cap_add: [ 'NET_ADMIN', 'NET_RAW' ] | ||
restart: on-failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[SERVICE] | ||
Flush 5 | ||
Daemon Off | ||
Log_Level debug | ||
|
||
[INPUT] | ||
Name forward | ||
Listen fluentbit | ||
Port 24224 | ||
|
||
[OUTPUT] | ||
Name es | ||
Match * | ||
Host dockerhost | ||
Port 9200 | ||
Index mesh_outside | ||
Type docker |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.