This repository has been archived by the owner on Jan 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker.patch
74 lines (71 loc) · 1.94 KB
/
docker.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..0e762d1
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,7 @@
+FROM kartoza/postgis:14-3.1
+
+RUN apt-get update && apt-get install -y \
+ git
+
+RUN git clone https://github.com/cesko-digital/jehlomat.git
+WORKDIR "jehlomat"
\ No newline at end of file
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..7b0cac7
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,21 @@
+# docker-compose build
+version: '2.1'
+volumes:
+ dbbackups:
+ postgis-data:
+services:
+ db:
+ build: .
+ environment:
+ # If you need to create multiple database yo u can add coma separated databases eg gis,data
+ - POSTGRES_DB=jehlomat
+ - POSTGRES_USER=jehlomat
+ - POSTGRES_PASS=jehlomat
+ - ALLOW_IP_RANGE=0.0.0.0/0
+ # Add extensions you need to be enabled by default in the DB. Default are the five specified below
+ - POSTGRES_MULTIPLE_EXTENSIONS=postgis,hstore,postgis_topology,postgis_raster,pgrouting
+ ports:
+ - 5432:5432
+ restart: on-failure
+ healthcheck:
+ test: "exit 0"
diff --git a/service-jehlomat/src/main/resources/application.conf b/service-jehlomat/src/main/resources/application.conf
index 8fed234..c03ece8 100644
--- a/service-jehlomat/src/main/resources/application.conf
+++ b/service-jehlomat/src/main/resources/application.conf
@@ -1,14 +1,14 @@
ktor {
deployment {
- port = 8082
+ port = 8089
}
databaseConfiguration {
host = "localhost"
- port = "3456"
- database = "postgres"
- user = "george"
- password = ""
+ port = "5432"
+ database = "jehlomat"
+ user = "jehlomat"
+ password = "jehlomat"
}
application {
@@ -17,6 +17,6 @@ ktor {
}
mailjet {
- publicKey = ""
- privateKey = ""
+ publicKey = "cbb81504a06f2fd735db577f09666b7f"
+ privateKey = "fdd479b47c4af6e4d46bb07bf889432d"
}