diff --git a/5xx.html b/5xx.html
new file mode 100644
index 0000000..9a25ee9
--- /dev/null
+++ b/5xx.html
@@ -0,0 +1,91 @@
+
+
+
+
+ Chainlens | Blockchain Explorer
+
+
+
+
+
+
+
+
+
+
diff --git a/docker-compose.yml b/docker-compose.yml
index 5f7ce25..33692da 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -14,12 +14,16 @@ services:
image: ghcr.io/foundry-rs/foundry:nightly-9b73e06e1fe376738b92ae081107620291d50188
labels:
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-false}'
+ ports:
+ - 127.0.0.1:8541:8541
command: >
"anvil
- --port=8540
+ --port=8541
+ --host=0.0.0.0
--chain-id=1337
--block-time=12
- --accounts=1"
+ --accounts=1
+ --allow-origin=*"
networks:
- simulation
@@ -148,3 +152,68 @@ services:
# - 6379:6379
networks:
- simulation
+
+ api:
+ image: web3labs/epirus-free-api:latest
+ environment:
+ - NODE_ENDPOINT=http://foundry:8541
+ - MONGO_CLIENT_URI=mongodb://mongodb:27017
+ - REINDEX_ENDPOINT=http://ingestion/reindex/
+ - MONGO_DB_NAME=epirus
+ - MONGO_CREATE_INDICES=true
+ - REDIS_HOST=redis
+ - REDIS_PORT=6379
+ depends_on:
+ - redis
+ - mongodb
+ - foundry
+ networks:
+ - simulation
+
+ mongodb:
+ image: mongo:5.0.8
+ environment:
+ - COMPOSE_HTTP_TIMEOUT=900
+ - DOCKER_CLIENT_TIMEOUT=900
+ entrypoint: mongod --bind_ip "0.0.0.0"
+ networks:
+ - simulation
+
+ web:
+ image: web3labs/epirus-free-web:latest
+ environment:
+ - API_URL=/api
+ - WS_API_URL=ws://localhost:8090
+ - DISPLAY_NETWORK_TAB=disabled
+ depends_on:
+ - api
+ networks:
+ - simulation
+
+ ingestion:
+ image: web3labs/epirus-free-ingestion:latest
+ environment:
+ - NODE_ENDPOINT=http://foundry:8541
+ - MONGO_CLIENT_URI=mongodb://mongodb:27017
+ - MONGO_DB_NAME=epirus
+ - LIST_OF_METRICS_TO_CALCULATE_PER_MINUTE=hourly,daily,monthly,yearly
+ depends_on:
+ - mongodb
+ - redis
+ - foundry
+ networks:
+ - simulation
+
+ nginx:
+ image: nginx:latest
+ volumes:
+ - ./nginx.conf:/etc/nginx/nginx.conf
+ - ./5xx.html:/www/error_pages/5xx.html
+ ports:
+ - ${PORT:-80}:80
+ depends_on:
+ - api
+ - web
+ - foundry
+ networks:
+ - simulation
\ No newline at end of file
diff --git a/nginx.conf b/nginx.conf
new file mode 100644
index 0000000..95033ba
--- /dev/null
+++ b/nginx.conf
@@ -0,0 +1,21 @@
+events { }
+
+http {
+ server {
+ listen 80;
+ charset utf-8;
+
+ location /api/ {
+ proxy_pass http://api:8090/;
+ }
+
+ location / {
+ proxy_pass http://web:3000/;
+ }
+
+ error_page 500 502 503 504 /5xx.html;
+ location /5xx.html {
+ root /www/error_pages/;
+ }
+ }
+}
\ No newline at end of file