Skip to content

jmdev3/lemon-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lemon Api

Stack

  • DOCKER
  • MYSQL
  • JAVA (MAVEN - SPRING BOOT - JPA)

Command

Execute the following command on the terminal:

docker pull mysql
docker run -d -p 13306:3306 --name lemon-mysql-container -e MYSQL_ROOT_PASSWORD=lemon mysql --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
docker exec -it lemon-mysql-container mysql -uroot -p
  • Insert password: lemon
create user 'admin' identified by 'lemon';
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%';
exit

Then:

  1. create database lemon_db;
  2. import dump
docker network create --driver bridge lemon-net
docker network connect lemon-net lemon-mysql-container

mvn clean package
docker build -t lemon-api:V1 .

docker run --network lemon-net -d -p 18888:8888 --name lemon-api-container LemonApiImageId

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published