Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

FROM tomcat:8.0-jre8-alpine
WORKDIR /usr/local/tomcat
COPY target/app.war /usr/local/tomcat/webapps/app.war
EXPOSE 8080
CMD ["catalina.sh", "run"]
35 changes: 35 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
version: "2"

---
volumes:
postgresql-data:
driver: local
springframework-data:
driver: local


---
services:
db:
image: postgres:9.1
ports:
- 5433:5432
volumes:
- postgresql-data:/var/lib/postgresql/data
env_file:
- dev.env
web:
image: your_image_name_here:latest
build:
context: "."
dockerfile: dev.Dockerfile
command: catalina.sh run
ports:
- 8080:8080
working_dir: "/usr/local/tomcat"
stdin_open: true
tty: true
links:
- db
depends_on:
- db