You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-16Lines changed: 18 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,23 +60,25 @@ Apart from bare Postgres, Naksha needs [PostGIS]() extension which is mandatory.
60
60
You can use standalone instance installed directly on your host machine but there's also a docker image that hosts Postgres 16 with all the extensions mentioned above already installed. You can find its definition in [this Dockerfile](here-naksha-app-service/src/jvmTest/psql_container/Dockerfile).
61
61
62
62
To use the containerized Postgres with your locally runnning Naksha:
63
-
1) Navigate to [Dockerfile directory](here-naksha-app-service/src/jvmTest/psql_container):
64
-
```
65
-
cd here-naksha-app-service/src/jvmTest/psql_container
66
-
```
67
-
2) Build the image:
68
-
```
69
-
docker build --no-cache -t <IMAGE_ID> .
70
-
```
71
-
3) Run the container (supplied options omit all auth - use it only locally, tweak if needed):
docker run -p 5432:5432 -e PGPASSWORD=password ghcr.io/naksha-oss/naksha-postgres:v16.2-r5
70
+
```
71
+
72
+
3) When the docker container is started for the first time, it will generate a random password so to simplify local development we can change it to default.
73
+
Also if you want locally persist your db changes refer to detailed containerized Postgres build.
74
+
For more detailed containerized Postgres build refer to [this README](deployment/docker/README.md).
75
+
76
+
75
77
4) Now your database should be available on `localhost` with port `5432` - you can start Naksha the same way as described in [Run App](#run-app) section.
76
78
77
79
5) \[optional extension run\] Now you can run naksha jar and include [example config with additional extensions enabled](here-naksha-app-service/src/main/resources/test-config-with-extensions.json) like so:
0 commit comments