-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdc.txt
More file actions
48 lines (45 loc) · 1.27 KB
/
Copy pathdc.txt
File metadata and controls
48 lines (45 loc) · 1.27 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
42
43
44
45
46
47
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://${RDS_HOSTNAME:localhost}:${RDS_PORT:3306}/flightuserdb?createDatabaseIfNotExist=true
#spring.datasource.url=jdbc:mysql://172.18.0.2:3306/flightuserdb?createDatabaseIfNotExist=true
spring.datasource.username=root
spring.datasource.password=Mind@India#19
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL8Dialect
spring.jpa.properties.hibernate.id.new_generator_mappings = false
spring.jpa.properties.hibernate.format_sql = true
spring.jpa.properties.hibernate.hbm2ddl.auto = update
spring.jpa.show-sql=true
version: '3'
services:
mysql-app:
image: mysql:5.7
#container_name: mysqltest
#ports:
# - "3306:3306"
expose:
- "3306"
environment:
- MYSQL_USER=root
- MYSQL_ROOT_PASSWORD=Mind@India#19
volumes:
- "./conf.d:/etc/mysql/conf.d:ro"
restart: always
networks:
- springbootjava
petclinic:
image: my-javaspring-imagent
#build: .
ports:
- '8080:8080'
restart: always
link:
- mysql-app
environment:
RDS_HOSTNAME: mysql-app
RDS_PORT: 3306
RDS_USERNAME: root
RDS_PASSWORD: Mind@India#19
networks:
- springbootjava
networks:
springbootjava:
~