forked from quarkusio/quarkus-quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
36 lines (34 loc) · 892 Bytes
/
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
version: '3'
networks:
mynetwork:
driver: bridge
services:
infinispan-server:
image: infinispan/server:latest
environment:
- USER=Titus Bramble
- PASS=Shambles
ports:
- "11222:11222"
container_name: infinispan
networks:
- mynetwork
client-app:
image: quarkus/infinispan-client
ports:
- "8081:8081"
container_name: client
depends_on:
- infinispan-server
networks:
- mynetwork
command: >
/bin/sh -c "
echo Waiting for Infinispan service start ...;
while ! curl --silent --output /dev/null --fail-early --user 'Titus Bramble:Shambles' http://infinispan:11222/rest/v2/server;
do
sleep 1;
done;
echo Infinispan service started!;
./application -Dquarkus.http.host=0.0.0.0 -Dquarkus.infinispan-client.server-list=infinispan:11222
"