Container works

This commit is contained in:
Filip Izydorczyk 2020-07-27 18:39:44 +02:00
parent 5314dda370
commit 291b44b12b
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,5 @@
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
spring.datasource.url=jdbc:mysql://172.20.0.2:3306/test?useUnicode=yes&characterEncoding=UTF-8 spring.datasource.url=jdbc:mysql://localhost:3306/test?useUnicode=yes&characterEncoding=UTF-8
spring.datasource.username=root spring.datasource.username=root
spring.datasource.password=example spring.datasource.password=example
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

View File

@ -7,6 +7,10 @@ services:
restart: always restart: always
environment: environment:
MYSQL_ROOT_PASSWORD: example MYSQL_ROOT_PASSWORD: example
expose:
- "3306"
ports:
- "3306:3306"
adminer: adminer:
image: adminer image: adminer