HealthCheckController up
[portal.git] / portal-BE / docker-compose.yml
index 2293afb..096695a 100644 (file)
@@ -18,9 +18,10 @@ services:
     restart: always
     environment:
       - MYSQL_DATABASE=testdb
-      - MYSQL_USER=portal
-      - MYSQL_PASSWORD=Test123456
+      - MYSQL_USER=${spring_datasource_username}
+      - MYSQL_PASSWORD=${spring_datasource_password}
       - MYSQL_RANDOM_ROOT_PASSWORD=yes
+      - MYSQL_INITDB_SKIP_TZINFO=1
     healthcheck:
       test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
     networks:
@@ -31,7 +32,10 @@ services:
     container_name: portal_APP
     restart: always
     ports:
-      - 8080:8080
+      - 8081:8081
+    environment:
+      - spring.datasource.username=${spring_datasource_username}
+      - spring.datasource.password=${spring_datasource_password}
     depends_on:
       - portal-db
     networks: