version: '2' services: springbootapp: image: spiri-backend-image_test_1:latest container_name: springbootapp depends_on: - mariadb environment: - SPRING_DATASOURCE_URL=jdbc:mysql://productdb:3306/playground?useUnicode=true&characterEncoding=utf8&useSSL=false ports: - 8080:8080 mariadb: image: mariadb:latest container_name: productdb volumes: #- /Users/raghav/mysqldump:/docker-entrypoint-initdb.d - /Users/raghav/mysqldocker/:/var/lib/mysql/ environment: - MYSQL_ROOT_PASSWORD=1234 - MYSQL_DATABASE=playground - MYSQL_USER=root - MYSQL_PASSWORD=1234 command: mysqld --lower_case_table_names=1 --skip-ssl --character_set_server=utf8