version 1.0
All checks were successful
Build-und-Deploy / build (push) Successful in 11s

minor change for pipeline test

minor change for pipeline test

minor change for pipeline test

minor change for pipeline test

minor change for pipeline test

minor change for pipeline test

minor change for pipeline test

minor change for pipeline test

minor change for pipeline test

minor change for pipeline test

minor change for pipeline test

minor change for pipeline test

Add Gitea Actions build workflow

Add CI/CD pipeline

Test Build & Deploy

add pipeline

add pipeline2

add pipeline3

add pipeline4

add pipeline 5

add pipeline 6

add pipeline 7

add pipeline 8

add pipeline 9

add pipeline 10

add pipeline 11

add pipeline 12

add pipeline 13

add pipeline 14

add pipeline 15

add pipeline 16

add pipeline 17

add pipeline 18

add pipeline 19

add pipeline 20

add pipeline 21

add pipeline 22

add pipeline 23

add pipeline 24

1

2

3
This commit is contained in:
Nils Burghardt
2025-07-12 19:06:23 +02:00
parent d3af3b6433
commit 9e4b0de915
116 changed files with 185827 additions and 109 deletions

View File

@@ -1,31 +1,51 @@
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: eclipse-temurin:17-jdk-alpine
container_name: mytimetracker-app
depends_on:
- db
ports:
- "8080:8080"
working_dir: /app
command: java -jar /app/MyTimeTracker-0.0.1-SNAPSHOT.jar
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
volumes:
- shared_jar_data:/app:ro # ⬅️ Direkt ins /app mounten
ports:
- "8400:8080"
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:
shared_jar_data:
external: true
networks:
traefik:
external: true