Skip to content

Commit c4c7d6a

Browse files
committed
RA-60: readme updated
1 parent f873b48 commit c4c7d6a

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

docker/readme.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ The build can take up to 1.5 hours.
1818
````
1919
docker run --env-file .\docker\.env.dockerfile -p 8080:8080 -it {image_name}:latest
2020
````
21-
We need to specify the path to the environment variables file and open the port.
21+
You need to specify the path to the environment variables file and open the port.
2222

2323
### 3. Changing project settings
2424

2525
All application settings are located in the ``.\docker\.env.dockerfile`` file.
26-
We can specify network, ports, postgres user, etc.
26+
You can specify network, ports, postgres user, etc.
2727

2828
### 4. Changing build parameters
2929
```
3030
docker build -t {image_name} --build-arg PG_VERSION=14 -f ./docker/Dockerfile .
31-
```
32-
We can specify Cabal, GHC, Cardano node, and Postgres versions when building an image.
31+
```
32+
You can specify Cabal, GHC, Cardano node, and Postgres versions when building an image.
3333

3434
The default values:
3535
``
@@ -51,16 +51,22 @@ docker run --env-file .\docker\.env.dockerfile -p 8080:8080 -v {custom_folder}:/
5151
````
5252
It is possible to root the cardano node data volumetrically to the /data/db point.
5353

54-
We can mount a volume with Cardano node data to ``/data/db`` to prevent loading during initialization.
54+
You can mount a volume with Cardano node data to ``/data/db`` to prevent loading during initialization.
5555

5656
### 6. Volume with custom network configurations
5757
````
5858
docker run --env-file .\docker\.env.dockerfile -p 8080:8080 -v {custom_folder}:/networks -it {image_name}:latest
5959
````
60-
The cardano node configuration json's are stored in the ``config`` folder and copied into the image on build.
61-
If we want to use a custom configuration without rebuilding the image, we can mount a volume with configs to ``/config``
60+
The cardano node configuration jsons are stored in the ``config`` folder and copied into the image on build.
61+
If you want to use a custom configuration without rebuilding the image, we can mount a volume with configs to ``/networks`` folder inside the container.
62+
63+
### 7. Volume with cardano data
64+
````
65+
docker run --env-file .\docker\.env.dockerfile -p 8082:8082 -v {custom_folder}:/data/db -it {image_name}:latest
66+
````
67+
If you want to use already existing cardano data, you can mount the data volume to the ``/data/db`` folder inside the container.
6268

63-
### 7. Logs location
69+
### 8. Logs location
6470

6571
The logs can be viewed inside the container.
6672
``

0 commit comments

Comments
 (0)