Skip to content
This repository was archived by the owner on May 5, 2026. It is now read-only.

Commit 882323a

Browse files
committed
Docker Dev Environment with docker-compose
1 parent 0baa132 commit 882323a

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

_docker/dev/appservers/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM jboss/wildfly:8.2.1.Final
2+
3+
RUN mkdir /tmp/myapp
4+
VOLUME ["/opt/jboss/wildfly/standalone/deployments/"]
5+

docker-compose.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Cache for Maven (.m2 repository)
2+
mavencache:
3+
image: busybox
4+
labels:
5+
com.mgreau.wilfly.websocket: "Cache Maven"
6+
volumes:
7+
- ~/.m2:/root/.m2
8+
9+
# Project Base
10+
mavenproject:
11+
image: busybox
12+
labels:
13+
com.mgreau.wilfly.websocket: "Java sources"
14+
volumes:
15+
- .:/myproject
16+
17+
mavenbuild:
18+
image: vyolin/alpine-maven
19+
labels:
20+
com.mgreau.wilfly.websocket: "Build app"
21+
command: mvn clean package -gs /root/.m2/settings.xml
22+
volumes_from:
23+
- mavencache
24+
- mavenproject
25+
working_dir: /myproject
26+
environment:
27+
MAVEN_OPTS: -Xshare:auto -Xms128M -Xmx1G -XX:MaxPermSize=256M
28+
29+
30+
wildflydeploy:
31+
build: _docker/dev/appservers/.
32+
labels:
33+
com.mgreau.wilfly.websocket: "Deploy App"
34+
ports:
35+
- "8080:8080"
36+
volumes:
37+
- ./target:/opt/jboss/wildfly/standalone/deployments/

0 commit comments

Comments
 (0)