-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
49 lines (48 loc) · 1.54 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: '2.3'
networks:
log-monitor-demo:
driver: bridge
ipam:
config:
- subnet: 172.128.0.0/16
gateway: 172.128.0.1
services:
hz:
image: hazelcast/hazelcast:5.0-BETA-2-slim
volumes:
- ./hazelcast.xml:/opt/hazelcast/config/hazelcast.xml
networks:
log-monitor-demo:
ipv4_address: 172.128.0.2
hz-deploy:
image: hazelcast/hazelcast:5.0-BETA-2-slim
command: ["/bin/sh", "-c", "sleep 10; /opt/hazelcast/bin/hz-cli submit -t 172.128.0.2 /mnt/log-monitor-job.jar && /opt/hazelcast/bin/hz-cli submit -t 172.128.0.2 /mnt/exception-notification-job.jar"]
volumes:
- ./log-monitor-job/target/log-monitor-job.jar:/mnt/log-monitor-job.jar
- ./exceptions-notification-job/target/exception-notification-job.jar:/mnt/exception-notification-job.jar
networks:
log-monitor-demo:
ipv4_address: 172.128.0.3
depends_on:
hz:
condition: service_started
wildfly:
image: jboss/wildfly:23.0.2.Final
command: ["/mnt/startup.sh"]
volumes:
- ./ejb-timer/target/ejb-exception-timer.jar:/opt/jboss/wildfly/standalone/deployments/ejb-exception-timer.jar
- ./ejb-timer/json-file-logger.cli:/mnt/json-file-logger.cli
- ./ejb-timer/startup.sh:/mnt/startup.sh
networks:
log-monitor-demo:
ipv4_address: 172.128.0.4
depends_on:
hz-deploy:
condition: service_completed_successfully
zeppelin:
build: ./zeppelin
# ports:
# - "3000:8080"
networks:
log-monitor-demo:
ipv4_address: 172.128.0.5