Skip to content

Commit

Permalink
SP-689 Java Spring Boot Demo - Docker Compose
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarzybok-sumoheavy committed Sep 11, 2023
1 parent 5b949cd commit af22925
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: '3.8'

services:
java:
build:
context: ./docker/java
user: gradle
volumes:
- ./:/home/gradle/project
ports:
- "8000:8000"
command: gradle bootRun
2 changes: 2 additions & 0 deletions docker/java/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM gradle:8.3.0-jdk20-alpine as build
WORKDIR /home/gradle/project

0 comments on commit af22925

Please sign in to comment.