We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fb3cbe1 + c24b502 commit d57bd19Copy full SHA for d57bd19
1 file changed
docker-compose.yml
@@ -0,0 +1,35 @@
1
+# To run the cloud version locally, first build the application using:
2
+#
3
+# ./mvnw clean package -Pcloud
4
+# -DpostgreSqlJdbcUrl="jdbc:postgresql://postgres:5432/postgres"
5
+# -DpostgreSqlUsername="cargotracker" -DpostgreSqlPassword="cargotracker"
6
7
+# Then start the services with:
8
9
+# docker-compose up
10
11
+version: '3.8'
12
+
13
+services:
14
+ postgres:
15
+ image: postgres:16
16
+ environment:
17
+ POSTGRES_USER: cargotracker
18
+ POSTGRES_PASSWORD: cargotracker
19
+ POSTGRES_DB: postgres
20
+ ports:
21
+ - "5432:5432"
22
+ volumes:
23
+ - postgres-data:/var/lib/postgresql/data
24
25
+ cargotracker:
26
+ build: .
27
28
+ - "8080:8080"
29
+ depends_on:
30
+ - postgres
31
32
+ DB_HOST: postgres
33
34
+volumes:
35
+ postgres-data:
0 commit comments