Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/mvnw text eol=lf
*.cmd text eol=crlf
14 changes: 14 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Use Template Java CI/CD

on:
push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "**" ]

jobs:
call-ci:
uses: Podzilla/templates/.github/workflows/ci.yml@main
with:
branch: 'refs/heads/main' # <<< Passes the branch name dynamically
secrets: inherit
12 changes: 12 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Use Template Linter

on:
pull_request:
branches: [ "**" ]

jobs:
call-linter:
uses: Podzilla/templates/.github/workflows/super-linter.yml@main
with:
branch: 'dev'
secrets: inherit
33 changes: 33 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/
46 changes: 46 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
services:
backend:
image: openjdk:25-ea-4-jdk-oraclelinux9
ports:
- "8080:8080"
env_file:
- secret.env
depends_on:
- auth_db
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://auth_db:5432/authDB
volumes:
- ./target:/app
- ./logs:/logs
command: [ "java", "-jar", "/app/auth-0.0.1-SNAPSHOT.jar" ]

auth_db:
image: postgres:latest
environment:
POSTGRES_PASSWORD: 1234
POSTGRES_USER: postgres
POSTGRES_DB: authDB
ports:
- "5432:5432"

loki:
image: grafana/loki:latest
ports:
- "3100:3100"
command: -config.file=/etc/loki/local-config.yaml

promtail:
image: grafana/promtail:latest
volumes:
- ./promtail-config.yml:/etc/promtail/promtail-config.yaml
- ./logs:/logs
command: -config.file=/etc/promtail/promtail-config.yaml
depends_on:
- loki

grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
depends_on:
- loki
259 changes: 259 additions & 0 deletions mvnw

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading