-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
2,192 additions
and
1,373 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 @@ | ||
OPENSEA_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
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 @@ | ||
.env |
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 @@ | ||
# Running enstate with docker-compose | ||
|
||
To get started you can clone this repository, enter this folder and run: | ||
|
||
```sh | ||
docker compose up | ||
``` | ||
|
||
This will start a redis instance, an enstate instance and a prometheus instance. | ||
|
||
You can adjust final tweaks inside of the `.env` file (see `.env.example` for an example). | ||
|
||
## Grafana | ||
|
||
The grafana portal is accessible at [http://localhost:3000](http://localhost:3000). | ||
|
||
You can login with the default credentials `admin`/`admin`. |
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,61 @@ | ||
name: 'enstate' | ||
|
||
services: | ||
enstate: | ||
image: ghcr.io/v3xlabs/enstate:latest | ||
ports: | ||
- "8000:8000" | ||
volumes: | ||
- ./data:/data | ||
environment: | ||
- PORT=8000 | ||
- UNIVERSAL_RESOLVER=0x8cab227b1162f03b8338331adaad7aadc83b895e | ||
- REDIS_URL=redis://redis:6379 | ||
- RPC_URL=https://rpc.ankr.com/eth | ||
env_file: .env | ||
|
||
redis: | ||
image: redis:6.0.9-alpine | ||
ports: | ||
- "6379:6379" | ||
|
||
prometheus: | ||
restart: unless-stopped | ||
image: prom/prometheus | ||
depends_on: | ||
- enstate | ||
ports: | ||
- 9090:9090 | ||
volumes: | ||
- ./prometheus/:/etc/prometheus/ | ||
- prometheusdata:/prometheus | ||
command: | ||
- --config.file=/etc/prometheus/prometheus.yaml | ||
- --storage.tsdb.path=/prometheus | ||
|
||
grafana: | ||
restart: unless-stopped | ||
image: grafana/grafana:latest | ||
depends_on: | ||
- enstate | ||
- prometheus | ||
ports: | ||
- 3000:3000 | ||
environment: | ||
PROMETHEUS_URL: http://prometheus:9090 | ||
volumes: | ||
- grafanadata:/var/lib/grafana | ||
- ./grafana/datasources:/etc/grafana/provisioning/datasources | ||
- ./grafana/dashboards:/etc/grafana/provisioning_temp/dashboards | ||
entrypoint: > | ||
sh -c "cp -r /etc/grafana/provisioning_temp/dashboards/. /etc/grafana/provisioning/dashboards && | ||
find /etc/grafana/provisioning/dashboards/ -name '*.json' -exec sed -i 's/$${DS_PROMETHEUS}/Prometheus/g' {} \+ && | ||
/run.sh" | ||
volumes: | ||
logs: | ||
driver: local | ||
prometheusdata: | ||
driver: local | ||
grafanadata: | ||
driver: local |
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,7 @@ | ||
apiVersion: 1 | ||
|
||
providers: | ||
- name: 'Folder' | ||
allowUiUpdates: true | ||
options: | ||
path: /etc/grafana/provisioning/dashboards |
Oops, something went wrong.