mirror of
https://github.com/Dannecron/spring-boot-demo.git
synced 2025-12-25 16:22:35 +03:00
dockerize application
This commit is contained in:
17
docker-compose.yml
Normal file
17
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user