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.
1 parent 358f63e commit 4afa012Copy full SHA for 4afa012
docker-compose.yml
@@ -0,0 +1,28 @@
1
+
2
+version: "2.0"
3
+services:
4
+ web:
5
+ build:
6
+ context: .
7
+ dockerfile: multistage.Dockerfile
8
+ ports:
9
+ - 8443:8443
10
+ environment:
11
+ - SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/youdemy
12
+ - SPRING_DATASOURCE_USERNAME=postgres
13
+ - SPRING_DATASOURCE_PASSWORD=password
14
+ - SPRING_JPA_HIBERNATE_DLL_AUTO=update
15
+ - SPRING_JPA_SHOW_SQL=true
16
+ restart: on-failure
17
+ depends_on:
18
+ - db
19
+ db:
20
+ image: postgres:14.2
21
+ container_name: db
22
+ restart: always
23
24
+ - POSTGRES_USER=postgres
25
+ - POSTGRES_PASSWORD=password
26
+ - POSTGRES_DB=youdemy
27
+ volumes:
28
+ - ./postgres:/var/lib/postgres
0 commit comments