-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 1.13 KB
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (37 loc) · 1.13 KB
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
version: "3.7"
services:
postgres_db:
image: postgres:14.1-alpine
container_name: store_database
restart: always
ports:
- "5432:5432"
volumes:
- ./data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: ces_db
backend:
image: store_back:1.0.0
restart: always
container_name: store_back
ports:
- "8080:8080"
depends_on:
- postgres_db
volumes:
- ./app:/
enviroment:
spring.datasource.url: jdbc:postgresql://localhost:5432/store_db
spring.datasource.username: postgres
spring.datasource.password: postgres
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation: true
spring.jpa.hibernate.ddl-auto: update
spring.jpa.show-sql: true
spring.jpa.properties.hibernate.format_sql: true
spring.jpa.database-platform: org.hibernate.dialect.PostgreSQLDialect
spring.devtools.livereload.enabled: true
spring.devtools.restart.enabled: true
spring.devtools.restart.poll-interval: 2s
spring.devtools.restart.quiet-period: 1s