This file contains hidden or 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
| @SpringBootApplication | |
| public class GenMailApplication { | |
| public static void main(String[] args) { | |
| // configuring environment variables | |
| Dotenv dotenv = Dotenv.configure().ignoreIfMissing().load(); | |
| dotenv.entries().forEach(entry -> | |
| System.setProperty(entry.getKey(), entry.getValue()) |
This file contains hidden or 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
| services: | |
| springboot-recaptcha: | |
| image: springboot-recaptcha | |
| container_name: spring-recaptcha-container | |
| build: | |
| context: . | |
| dockerfile: Dockerfile | |
| ports: | |
| - "8080:8080" | |
| networks: |
This file contains hidden or 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
| # Imagen modelo | |
| FROM <image> -> eclipse-temurin:21.0.3_9-jdk | |
| # Definir directorio raiz de nuestro contenedor | |
| WORKDIR /root | |
| # Copiar y pegar archivos dentro del contenedor | |
| COPY ./pom.xml /root | |
| COPY ./.mvn /root/.mvn | |
| COPY ./mvnw /root |
This file contains hidden or 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
| spring.jpa.hibernate.ddl-auto=update | |
| spring.datasource.url=jdbc:mysql://localhost:3306/DATABASE_NAME?createDatabaseIfNotExist=true | |
| spring.datasource.username=USERNAME | |
| spring.datasource.password=PASSWORD | |
| spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver |