application.yaml

This commit is contained in:
root
2025-09-14 15:26:13 +05:00
parent 9fdba106aa
commit 6be4181b8c
4 changed files with 35 additions and 25 deletions
+25
View File
@@ -22,6 +22,26 @@ services:
timeout: 5s
retries: 5
# MongoDB Database
mongodb:
image: mongo:7.0
container_name: konturai-mongodb
environment:
MONGO_INITDB_ROOT_USERNAME: konturai
MONGO_INITDB_ROOT_PASSWORD: konturai2024
MONGO_INITDB_DATABASE: konturai
ports:
- '27017:27017'
volumes:
- mongodb_data:/data/db
networks:
- konturai-network
healthcheck:
test: ['CMD', 'mongosh', '--eval', 'db.adminCommand("ping")']
interval: 10s
timeout: 5s
retries: 5
# Spring Boot Application
app:
build:
@@ -33,11 +53,15 @@ services:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
SPRING_JPA_HIBERNATE_DDL_AUTO: none
MONGODB_URI: mongodb://konturai:konturai2024@mongodb:27017/konturai?authSource=admin
MONGODB_DATABASE: konturai
ports:
- '8080:8080'
depends_on:
postgres:
condition: service_healthy
mongodb:
condition: service_healthy
networks:
- konturai-network
healthcheck:
@@ -49,6 +73,7 @@ services:
volumes:
postgres_data:
mongodb_data:
networks:
konturai-network: