dockerize application

This commit is contained in:
Denis Savosin
2024-10-07 13:14:50 +07:00
parent 983a9badf2
commit 01ce385c30
8 changed files with 53 additions and 10 deletions

17
docker-compose.yml Normal file
View File

@@ -0,0 +1,17 @@
---
services:
demo:
image: localhost/spring-boot-demo:latest
build:
dockerfile: Dockerfile
context: .
environment:
DB_URL: $DB_URL
DB_NAME: $DB_NAME
DB_SCHEMA: $DB_SCHEMA
DB_USERNAME: $DB_USERNAME
DB_PASSWORD: $DB_PASSWORD
KAFKA_SERVERS: $KAFKA_SERVERS
expose:
- 8080
- 8081