Skip to content

Commit 30f525c

Browse files
authored
Enhanced README to Pull and Modify Variables in the .env file (#288)
* enhanced readme * enhanced setup.md * enhanced setup.md
1 parent 38f5d5b commit 30f525c

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@ docker-compose version
1818
```
1919

2020
#### Using prebuilt images
21-
You can use prebuilt images generated by our CI workflow.
21+
You can use prebuilt images generated by our CI workflow by downloading the docker-compose and .env files.
2222

2323
- To use the latest stable version.
2424

2525
- Linux Machine
2626

2727
```
2828
curl -o docker-compose.yml https://raw.githubusercontent.com/OWASP/crAPI/main/deploy/docker/docker-compose.yml
29+
30+
curl -o .env https://raw.githubusercontent.com/OWASP/crAPI/main/deploy/docker/.env
2931

3032
docker-compose pull
3133

@@ -37,18 +39,28 @@ You can use prebuilt images generated by our CI workflow.
3739
```
3840
curl.exe -o docker-compose.yml https://raw.githubusercontent.com/OWASP/crAPI/main/deploy/docker/docker-compose.yml
3941

42+
curl.exe -o .env https://raw.githubusercontent.com/OWASP/crAPI/main/deploy/docker/.env
43+
4044
docker-compose pull
4145

4246
docker-compose -f docker-compose.yml --compatibility up -d
4347
```
4448

49+
To override server configurations, change the values of the variables present in the .env file or add the respective variables to the start of the docker-compose command.
50+
51+
```
52+
LISTEN_IP="127.0.0.1" docker-compose -f docker-compose.yml --compatibility up -d
53+
```
54+
4555
- To use the latest development version
4656

4757
- Linux Machine
4858

4959
```
5060
curl -o docker-compose.yml https://raw.githubusercontent.com/OWASP/crAPI/develop/deploy/docker/docker-compose.yml
5161
62+
curl -o .env https://raw.githubusercontent.com/OWASP/crAPI/main/deploy/docker/.env
63+
5264
VERSION=develop docker-compose pull
5365
5466
VERSION=develop docker-compose -f docker-compose.yml --compatibility up -d
@@ -59,6 +71,8 @@ You can use prebuilt images generated by our CI workflow.
5971
```
6072
curl.exe -o docker-compose.yml https://raw.githubusercontent.com/OWASP/crAPI/develop/deploy/docker/docker-compose.yml
6173
74+
curl.exe -o .env https://raw.githubusercontent.com/OWASP/crAPI/main/deploy/docker/.env
75+
6276
set "VERSION=develop"
6377
6478
docker-compose pull

docs/setup.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ docker-compose version
1111
```
1212

1313
### Using prebuilt images
14-
You can use prebuilt images generated by our CI workflow.
14+
You can use prebuilt images generated by our CI workflow by downloading the docker-compose and .env files.
1515

1616
#### Start crAPI
1717
- To use the latest stable version.
@@ -21,6 +21,8 @@ You can use prebuilt images generated by our CI workflow.
2121
```
2222
curl -o docker-compose.yml https://raw.githubusercontent.com/OWASP/crAPI/main/deploy/docker/docker-compose.yml
2323
24+
curl -o .env https://raw.githubusercontent.com/OWASP/crAPI/main/deploy/docker/.env
25+
2426
docker-compose pull
2527
2628
docker-compose -f docker-compose.yml --compatibility up -d
@@ -31,10 +33,17 @@ You can use prebuilt images generated by our CI workflow.
3133
```
3234
curl.exe -o docker-compose.yml https://raw.githubusercontent.com/OWASP/crAPI/main/deploy/docker/docker-compose.yml
3335
36+
curl.exe -o .env https://raw.githubusercontent.com/OWASP/crAPI/main/deploy/docker/.env
37+
3438
docker-compose pull
3539
3640
docker-compose -f docker-compose.yml --compatibility up -d
3741
```
42+
To override server configurations, change the values of the variables present in the .env file or add the respective variables to the start of the docker-compose command.
43+
44+
```
45+
LISTEN_IP="127.0.0.1" docker-compose -f docker-compose.yml --compatibility up -d
46+
```
3847
3948
- To use the latest development version
4049
@@ -43,6 +52,8 @@ You can use prebuilt images generated by our CI workflow.
4352
```
4453
curl -o docker-compose.yml https://raw.githubusercontent.com/OWASP/crAPI/develop/deploy/docker/docker-compose.yml
4554
55+
curl -o .env https://raw.githubusercontent.com/OWASP/crAPI/main/deploy/docker/.env
56+
4657
VERSION=develop docker-compose pull
4758
4859
VERSION=develop docker-compose -f docker-compose.yml --compatibility up -d
@@ -53,6 +64,8 @@ You can use prebuilt images generated by our CI workflow.
5364
```
5465
curl.exe -o docker-compose.yml https://raw.githubusercontent.com/OWASP/crAPI/develop/deploy/docker/docker-compose.yml
5566
67+
curl.exe -o .env https://raw.githubusercontent.com/OWASP/crAPI/main/deploy/docker/.env
68+
5669
set "VERSION=develop"
5770
5871
docker-compose pull

0 commit comments

Comments
 (0)