fixes
All checks were successful
Build and Deploy Spring Boot Server / build (push) Successful in 10m0s

This commit is contained in:
2025-01-11 21:37:11 +01:00
parent 85e4a2b125
commit c453411444
2 changed files with 14 additions and 13 deletions

View File

@@ -1,29 +1,27 @@
version: "3.8" version: "3.8"
services: services:
app: xpensely-server:
image: tea.zendric.de/cedric/xpensely-server:latest image: tea.zendric.de/cedric/xpensely-server:latest
container_name: XpenselyServer container_name: xpensely-server
ports: ports:
- "3636:8080" - 3636:8080
environment: environment:
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID} GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET} GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
DB_PORT: 5434 DB_PORT: 5434
DB_CONTAINER: ${DB_P_CONTAINER}
DB_NAME: ${DB_P_NAME} DB_NAME: ${DB_P_NAME}
DB_USERNAME: ${DB_USERNAME} DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD} DB_PASSWORD: ${DB_PASSWORD}
depends_on: depends_on:
- postgresdb postgresdb:
condition: service_healthy
networks: networks:
- xpensely-network - xpensely-network
postgresdb: postgresdb:
image: postgres:14 image: postgres:14
container_name: postgresdb container_name: postgresdb
ports: ports:
- "5434:5432" - 5434:5432
environment: environment:
POSTGRES_DB: ${DB_P_NAME} POSTGRES_DB: ${DB_P_NAME}
POSTGRES_USER: ${DB_USERNAME} POSTGRES_USER: ${DB_USERNAME}
@@ -33,9 +31,12 @@ services:
volumes: volumes:
- db_data:/var/lib/postgresql/data - db_data:/var/lib/postgresql/data
restart: unless-stopped restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USERNAME}"]
interval: 10s
timeout: 5s
retries: 5
volumes: volumes:
db_data: db_data: null
networks: networks:
xpensely-network: xpensely-network: null

View File

@@ -8,7 +8,7 @@ spring.security.oauth2.client.registration.google.client-secret=${GOOGLE_CLIENT_
spring.security.oauth2.resourceserver.jwt.issuer-uri=https://accounts.google.com spring.security.oauth2.resourceserver.jwt.issuer-uri=https://accounts.google.com
# PostgreSQL Configuration # PostgreSQL Configuration
spring.datasource.url=jdbc:postgresql://${DB_P_CONTAINER}:${DB_PORT}/${DB_P_NAME} spring.datasource.url=jdbc:postgresql://postgresdb:${DB_PORT}/${DB_P_NAME}
spring.datasource.username=${DB_USERNAME} spring.datasource.username=${DB_USERNAME}
spring.datasource.password=${DB_PASSWORD} spring.datasource.password=${DB_PASSWORD}
spring.datasource.driver-class-name=org.postgresql.Driver spring.datasource.driver-class-name=org.postgresql.Driver