Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Dockering Spring Boot MySQL CRUD Application Step by Step

Pragya Keshap answered on February 10, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • Build CRUD REST API's using Spring Boot, Spring Data JPA and MySQL Database
  • Docker Compose for Dockering Spring Boot Application Step by Step
  • spring boot crud with mybatis
  • Dockering Spring Boot Application Step by Step

  • Dockering Spring Boot MySQL CRUD Application Step by Step

    0

    two ways of dockerizing a Spring Boot app with MySQL database. Those are;

    By creating a docker network

    Using docker-compose

    version: "3"

    services:

    server:

    image: backend

    ports:

    - "8080:8080"

    environment:

    - spring.datasource.url=jdbc:mysql://mysqldb:3306/employeedb?useSSL=false

    networks:

    - springmysql-net

    depends_on:

    - mysqldb

    mysqldb:

    image: mysql:5.7

    networks:

    - springmysql-net

    environment:

    - MYSQL_ROOT_PASSWORD=1234

    - MYSQL_DATABASE=employeedb

    - MYSQL_USER=sa

    - MYSQL_PASSWORD=1234

    networks:

    springmysql-net:

    Popularity 1/10 Helpfulness 1/10 Language sql
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 10 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.