2020-03-20 12:47:21 -04:00
|
|
|
version: '3.7'
|
|
|
|
services:
|
|
|
|
|
|
|
|
wildfly:
|
|
|
|
image: jboss/wildfly:18.0.1.Final
|
|
|
|
environment:
|
2021-04-09 13:24:41 -04:00
|
|
|
JAVA_OPTS: -Dopensearch.uri=opensearch:9200 -Djboss.http.port=8080 -Djava.net.preferIPv4Stack=true
|
2020-03-20 12:47:21 -04:00
|
|
|
volumes:
|
|
|
|
- ./build/distributions/example-app.war:/opt/jboss/wildfly/standalone/deployments/example-app.war
|
|
|
|
ports:
|
|
|
|
- "8080"
|
|
|
|
healthcheck:
|
|
|
|
start_period: 5s
|
|
|
|
test: ["CMD", "grep", "Admin console listening on", "/opt/jboss/wildfly/standalone/log/server.log"]
|
|
|
|
interval: 2s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 5
|
|
|
|
|
2021-03-19 17:41:43 -04:00
|
|
|
opensearch:
|
2021-04-09 13:24:41 -04:00
|
|
|
image: opensearch-oss:test
|
2020-03-20 12:47:21 -04:00
|
|
|
environment:
|
|
|
|
discovery.type: single-node
|
|
|
|
ulimits:
|
|
|
|
memlock:
|
|
|
|
soft: -1
|
|
|
|
hard: -1
|
|
|
|
nofile:
|
|
|
|
soft: 65536
|
|
|
|
hard: 65536
|
|
|
|
healthcheck:
|
|
|
|
start_period: 15s
|
|
|
|
test: ["CMD", "curl", "-f", "-k", "http://localhost:9200"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 2s
|
|
|
|
retries: 5
|