There was an error while loading. Please reload this page.
1 parent 86a2703 commit eb14c0cCopy full SHA for eb14c0c
1 file changed
docker-run.sh
@@ -0,0 +1,15 @@
1
+#!/bin/bash
2
+
3
+# Build the Docker image if needed
4
+# mvn clean package
5
+# docker build -t reitti/reitti:test .
6
7
+# Run the container with custom UID/GID
8
+docker run -p 8080:8080 \
9
+ -e APP_UID=1001 \
10
+ -e APP_GID=1001 \
11
+ -e SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/reitti \
12
+ reitti/reitti:test
13
14
+# To verify the user ID inside the container, run:
15
+# docker exec -it $(docker ps -q --filter ancestor=reitti/reitti:test) sh -c "id"
0 commit comments