From a4a7c99ce0eab51f1288de0b722e1731c23fddbf Mon Sep 17 00:00:00 2001 From: stubbsta Date: Fri, 1 Mar 2024 12:40:36 +0200 Subject: [PATCH] removed nginx dependency - removed nginx container and related files and updated API_URL for web service --- 5xx.html | 91 ---------------------------------------------- docker-compose.yml | 20 +++------- nginx.conf | 21 ----------- 3 files changed, 5 insertions(+), 127 deletions(-) delete mode 100644 5xx.html delete mode 100644 nginx.conf diff --git a/5xx.html b/5xx.html deleted file mode 100644 index 9a25ee9..0000000 --- a/5xx.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - Chainlens | Blockchain Explorer - - - - - - - -
-
-
- - - -
-
-
-

Your environment is being created

-

Give us a few minutes

- - Chainlens — web3labs.com - -
-
- - diff --git a/docker-compose.yml b/docker-compose.yml index 33692da..f993ad4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -155,6 +155,8 @@ services: api: image: web3labs/epirus-free-api:latest + ports: + - 8090:8090 environment: - NODE_ENDPOINT=http://foundry:8541 - MONGO_CLIENT_URI=mongodb://mongodb:27017 @@ -181,8 +183,10 @@ services: web: image: web3labs/epirus-free-web:latest + ports: + - 3001:3000 environment: - - API_URL=/api + - API_URL=http://localhost:8090 - WS_API_URL=ws://localhost:8090 - DISPLAY_NETWORK_TAB=disabled depends_on: @@ -201,19 +205,5 @@ services: - 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 deleted file mode 100644 index 95033ba..0000000 --- a/nginx.conf +++ /dev/null @@ -1,21 +0,0 @@ -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