Skip to content

Commit

Permalink
Ref #10: add docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
dkazakov committed Feb 22, 2024
1 parent 99b6bde commit 9f204c6
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 1 deletion.
1 change: 0 additions & 1 deletion backend/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions backend/.idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions backend/.idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM alpine:3.19.1
COPY .. /tmp
EXPOSE 8080
RUN apk add openjdk17
WORKDIR /tmp
RUN chmod +x ./gradlew
RUN ./gradlew build
ENTRYPOINT ["./gradlew", "bootRun"]
21 changes: 21 additions & 0 deletions backend/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
services:
server:
hostname: knowledge-management-server
container_name: knowledge-management-server
build:
context: .
ports:
- "8080:8080"
networks:
priv-knowledge-system-net:
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
networks:
priv-knowledge-system-net:
driver: bridge
ipam:
config:
- subnet: 172.18.254.0/28

0 comments on commit 9f204c6

Please sign in to comment.