10 Commits

Author SHA1 Message Date
Nils Burghardt
6f31eee9b0 minor change for pipeline test 2025-07-13 11:52:32 +02:00
Nils Burghardt
fe5ee6a0d3 minor change for pipeline test 2025-07-13 11:51:44 +02:00
Nils Burghardt
9ec9371287 minor change for pipeline test 2025-07-13 11:50:33 +02:00
Nils Burghardt
7479479e0c minor change for pipeline test 2025-07-13 11:43:29 +02:00
Nils Burghardt
a922c2ddbd minor change for pipeline test 2025-07-13 11:22:08 +02:00
Nils Burghardt
ece3d4239f minor change for pipeline test 2025-07-13 11:12:32 +02:00
Nils Burghardt
0867043330 minor change for pipeline test 2025-07-13 11:04:38 +02:00
Nils Burghardt
a54cb5e70d minor change for pipeline test 2025-07-13 10:58:08 +02:00
Nils Burghardt
4166efeea0 minor change for pipeline test 2025-07-12 19:48:47 +02:00
Nils Burghardt
f55394efe8 minor change for pipeline test 2025-07-12 19:31:08 +02:00
4 changed files with 25 additions and 12 deletions

View File

@@ -5,7 +5,7 @@ FROM eclipse-temurin:17-jdk-alpine
WORKDIR /app
# 3. Kopiere das JAR (Pfad siehe unten)
COPY build/libs/mytimetracker.jar app.jar
COPY build/libs/MyTimeTracker-0.0.1-SNAPSHOT.jar app.jar
# 4. Port freigeben
EXPOSE 8080

View File

@@ -3,31 +3,44 @@ version: "3.9"
services:
db:
image: mysql:8
restart: always
container_name: mytimetracker-db
restart: always
environment:
MYSQL_DATABASE: mytimetracker
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: appuser
MYSQL_PASSWORD: apppass
ports:
- "3306:3306"
volumes:
- db_data:/var/lib/mysql
expose:
- "3306"
networks:
- traefik
app:
build: .
image: mytimetracker-app
container_name: mytimetracker-app
depends_on:
- db
ports:
- "8080:8080"
- "8400:8080" # 8400 auf dem Host, 8080 im Container
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://db:3306/mytimetracker?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC
SPRING_DATASOURCE_USERNAME: appuser
SPRING_DATASOURCE_PASSWORD: apppass
SPRING_JPA_HIBERNATE_DDL_AUTO: update
SPRING_PROFILES_ACTIVE: docker
labels:
- "traefik.enable=true"
- "traefik.http.routers.mytimetracker.rule=Host(`timetracker.nilzbu.de`)"
- "traefik.http.routers.mytimetracker.entrypoints=websecure"
- "traefik.http.routers.mytimetracker.tls=true"
- "traefik.http.routers.mytimetracker.tls.certresolver=letsEncrypt"
- "traefik.http.services.mytimetracker.loadbalancer.server.port=8080"
networks:
- traefik
restart: always
volumes:
db_data:
db_data:
networks:
traefik:
external: true

View File

@@ -27,7 +27,7 @@ public class MainLayout extends AppLayout {
}
private void createHeader() {
H1 logo = new H1("My Time Tracker");
H1 logo = new H1("Time Tracker");
logo.getStyle()
.set("font-size", "var(--lumo-font-size-l)")
.set("margin", "0");

View File

@@ -16,6 +16,6 @@ public class LoginView extends VerticalLayout {
LoginForm login = new LoginForm();
login.setAction("login"); // wichtig für Spring Security
add(new H2("My Time Tracker Anmeldung"), login);
add(new H2("Time Tracker Login"), login);
}
}