Compare commits
No commits in common. "1636039545bd86d3d03d67c7527be049e449351f" and "06539a05fcf32c541d159d813ac345da367323ef" have entirely different histories.
1636039545
...
06539a05fc
@ -1,6 +0,0 @@
|
|||||||
DB_NAME=EXAMPLE_DB
|
|
||||||
DB_USER=EXAMPLE
|
|
||||||
DB_PASSWORD=SECRET
|
|
||||||
DB_HOST=127.0.0.1
|
|
||||||
DB_PORT=5432
|
|
||||||
SPRING_PROFILES_ACTIVE=dev
|
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,7 +2,5 @@
|
|||||||
*.toml
|
*.toml
|
||||||
*.db
|
*.db
|
||||||
target
|
target
|
||||||
logs
|
|
||||||
.env
|
|
||||||
|
|
||||||
Icon?
|
Icon?
|
10
Dockerfile
10
Dockerfile
@ -1,10 +0,0 @@
|
|||||||
FROM maven:3.9-eclipse-temurin-21-alpine AS build
|
|
||||||
WORKDIR /app
|
|
||||||
COPY . .
|
|
||||||
RUN mvn clean package -DskipTests
|
|
||||||
|
|
||||||
FROM openjdk:21-jdk
|
|
||||||
WORKDIR /app
|
|
||||||
COPY --from=build /app/bootstrap/target/*.jar app.jar
|
|
||||||
EXPOSE 8080
|
|
||||||
ENTRYPOINT ["java","-jar","app.jar"]
|
|
@ -32,7 +32,6 @@ server:
|
|||||||
servlet:
|
servlet:
|
||||||
context-path: /api
|
context-path: /api
|
||||||
forward-headers-strategy: framework
|
forward-headers-strategy: framework
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
@ -41,12 +40,32 @@ spring:
|
|||||||
on-profile: default
|
on-profile: default
|
||||||
|
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:postgresql://${DB_HOST:localhost}:${DB_PORT:5432}/${DB_NAME:default_db}
|
url: jdbc:h2:file:./restemailbridge-db
|
||||||
username: ${DB_USER:postgres}
|
driver-class-name: org.h2.Driver
|
||||||
password: ${DB_PASSWORD:postgres}
|
username: sa
|
||||||
driver-class-name: org.postgresql.Driver
|
password:
|
||||||
jpa:
|
jpa:
|
||||||
properties:
|
properties:
|
||||||
hibernate:
|
hibernate:
|
||||||
ddl-auto: update
|
dialect: org.hibernate.dialect.H2Dialect
|
||||||
dialect: org.hibernate.dialect.PostgreSQLDialect
|
h2:
|
||||||
|
console:
|
||||||
|
enabled: true
|
||||||
|
path: /h2-console
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
spring:
|
||||||
|
config:
|
||||||
|
activate:
|
||||||
|
on-profile: prod
|
||||||
|
|
||||||
|
datasource:
|
||||||
|
url: jdbc:postgresql://${DB_HOST:localhost}:${DB_PORT:5432}/${DB_NAME:portfolio}
|
||||||
|
username: ${DB_USER:postgres}
|
||||||
|
password: ${DB_PASSWORD:postgres}
|
||||||
|
driver-class-name: org.postgresql.Driver
|
||||||
|
|
||||||
|
jpa:
|
||||||
|
hibernate:
|
||||||
|
ddl-auto: update
|
@ -1,34 +0,0 @@
|
|||||||
services:
|
|
||||||
api:
|
|
||||||
build: .
|
|
||||||
ports:
|
|
||||||
- "8080:8080"
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
environment:
|
|
||||||
DB_NAME: ${DB_NAME}
|
|
||||||
DB_HOST: ${DB_HOST}
|
|
||||||
DB_PORT: ${DB_PORT}
|
|
||||||
DB_USER: ${DB_USER}
|
|
||||||
DB_PASSWORD: ${DB_PASSWORD}
|
|
||||||
networks:
|
|
||||||
- network
|
|
||||||
db:
|
|
||||||
image: postgres:15
|
|
||||||
ports:
|
|
||||||
- "5432:5432"
|
|
||||||
environment:
|
|
||||||
POSTGRES_DB: ${DB_NAME}
|
|
||||||
POSTGRES_USER: ${DB_USER}
|
|
||||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
||||||
volumes:
|
|
||||||
- rest-email-bridge-db-data:/var/lib/postgresql/data
|
|
||||||
networks:
|
|
||||||
- network
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
rest-email-bridge-db-data:
|
|
||||||
|
|
||||||
networks:
|
|
||||||
network:
|
|
||||||
driver: bridge
|
|
Loading…
x
Reference in New Issue
Block a user