diff --git a/restservice/src/main/resources/application.properties b/restservice/src/main/resources/application.properties index 309a6b7..bd77a4e 100644 --- a/restservice/src/main/resources/application.properties +++ b/restservice/src/main/resources/application.properties @@ -1,5 +1,5 @@ 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.password=example spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver diff --git a/stack.yml b/stack.yml index 039b17f..933c7ba 100644 --- a/stack.yml +++ b/stack.yml @@ -7,6 +7,10 @@ services: restart: always environment: MYSQL_ROOT_PASSWORD: example + expose: + - "3306" + ports: + - "3306:3306" adminer: image: adminer