This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# USING LINKS | |
#version: "3.7" | |
#services: | |
# api_service: | |
# build: . | |
# restart: always | |
# ports: | |
# - 8080:8080 | |
# links: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM openjdk:8-jdk-alpine | |
LABEL maintainer="author@javatodev.com" | |
VOLUME /main-app | |
ADD build/libs/spring-boot-postgresql-base-project-0.0.1-SNAPSHOT.jar app.jar | |
EXPOSE 8080 | |
ENTRYPOINT ["java", "-jar","/app.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
services: | |
api_service: | |
build: . | |
restart: always | |
ports: | |
- 8080:8080 | |
depends_on: | |
- mysql_db | |
command: sh -c './wait-for mysql_db:3306 -- npm start' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM openjdk:8-jdk-alpine | |
LABEL maintainer="author@javatodev.com" | |
VOLUME /main-app | |
ADD build/libs/spring-boot-mysql-base-project-0.0.1-SNAPSHOT.jar app.jar | |
EXPOSE 8080 | |
ENTRYPOINT ["java", "-jar","/app.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
services: | |
api_service: | |
build: . | |
restart: always | |
ports: | |
- 8080:8080 | |
depends_on: | |
- mysql_db | |
command: sh -c './wait-for mysql_db:3306 -- npm start' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version: "3.7" | |
#services: | |
# api_service: | |
# build: . | |
# restart: always | |
# ports: | |
# - 8080:8080 | |
# depends_on: | |
# - maria_db | |
# links: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version: "3.7" | |
#services: | |
# api_service: | |
# build: . | |
# restart: always | |
# ports: | |
# - 8080:8080 | |
# links: | |
# - mongo_db:app_db | |
# mongo_db: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM openjdk:8-jdk-alpine | |
LABEL maintainer="author@javatodev.com" | |
VOLUME /main-app | |
ADD build/libs/spring-boot-mongodb-base-project-0.0.1-SNAPSHOT.jar app.jar | |
EXPOSE 8080 | |
ENTRYPOINT ["java", "-jar","/app.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javatodev.api.model.user; | |
import lombok.*; | |
import javax.persistence.*; | |
@Entity | |
@Builder | |
@Getter | |
@Setter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javatodev.api.repository.user; | |
import com.javatodev.api.model.user.UserEntity; | |
import org.springframework.data.jpa.repository.JpaRepository; | |
public interface UserRepository extends JpaRepository<UserEntity, Long> { | |
} |
OlderNewer