Skip to content

Commit 29b1a51

Browse files
committed
chore: Add explanation for proxy enviroments
1 parent 1cfabc5 commit 29b1a51

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

README.md

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ https://github.com/user-attachments/assets/0dbb63f4-7bc5-4e4d-81d0-94444a61e386
2929
### Step 1
3030
Create a .env from *template.env* file.
3131

32-
#### Proxy Enviroment
33-
In proxy enviroments the .env configuration must be added directly to the Dockerfiles.
34-
3532
#### Get API Keys
3633

3734
- How to get a *GitHub* [API key](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens).
@@ -54,3 +51,30 @@ Enter [here](http://0.0.0.0:3000) for the frontend Web API.
5451
1. It is recommended to use a GUI such as [MongoDB Compass](https://www.mongodb.com/en/products/compass) to see what information is being indexed in vulnerability database.
5552

5653
2. You can see the created graph built for [pip](http://0.0.0.0:7474/browser/), [npm](http://localhost:7473/browser/) and [mvn](http://localhost:7472/browser/) clicking in this names. Using the Neo4J browser interfaces.
54+
55+
## Proxy Enviroment
56+
57+
### Create an *.env* file por proxy settings
58+
59+
Define these variables in an *.env* file that can be referenced by *docker-compose.yml*. Example *.env* file:
60+
61+
```
62+
HTTP_PROXY=http://proxy.example.com:port
63+
HTTPS_PROXY=https://proxy.example.com:port
64+
NO_PROXY=localhost,127.0.0.1
65+
```
66+
67+
### Add an *.env* to the *docker-compose.yml*
68+
69+
Add the proxy configuration defined in the *.env* file, for example to the following *docker-compose.yml* file:
70+
71+
```
72+
services:
73+
app:
74+
image: your-app-image
75+
build: .
76+
env_file:
77+
- .env
78+
ports:
79+
- "8080:80"
80+
```

0 commit comments

Comments
 (0)