All checks were successful
Build and Deploy Spring Boot Server / build (push) Successful in 10m0s
43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
version: "3.8"
|
|
services:
|
|
xpensely-server:
|
|
image: tea.zendric.de/cedric/xpensely-server:latest
|
|
container_name: xpensely-server
|
|
ports:
|
|
- 3636:8080
|
|
environment:
|
|
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
|
|
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
|
|
DB_PORT: 5434
|
|
DB_NAME: ${DB_P_NAME}
|
|
DB_USERNAME: ${DB_USERNAME}
|
|
DB_PASSWORD: ${DB_PASSWORD}
|
|
depends_on:
|
|
postgresdb:
|
|
condition: service_healthy
|
|
networks:
|
|
- xpensely-network
|
|
postgresdb:
|
|
image: postgres:14
|
|
container_name: postgresdb
|
|
ports:
|
|
- 5434:5432
|
|
environment:
|
|
POSTGRES_DB: ${DB_P_NAME}
|
|
POSTGRES_USER: ${DB_USERNAME}
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
networks:
|
|
- xpensely-network
|
|
volumes:
|
|
- db_data:/var/lib/postgresql/data
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U ${DB_USERNAME}"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
volumes:
|
|
db_data: null
|
|
networks:
|
|
xpensely-network: null
|