-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (55 loc) · 1.71 KB
/
docker-compose.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
version: '3.1'
services:
permission:
image: 'busybox'
volumes:
- 'wildfly_log:/opt/jboss/wildfly/standalone/log'
command: chmod 777 /opt/jboss/wildfly/standalone/log
wildfly:
build:
context: ./quickstart
dockerfile: Dockerfile
ports:
- '8080:8080'
- '9990:9990'
volumes:
- 'wildfly_log:/opt/jboss/wildfly/standalone/log'
- '${PWD}/my.properties:/opt/jboss/wildfly/standalone/configuration/my.properties:ro'
command: /opt/jboss/wildfly/bin/standalone.sh --server-config=standalone-full-ha.xml -b 0.0.0.0 -bmanagement 0.0.0.0
depends_on: ['permission']
filebeat:
image: docker.elastic.co/beats/filebeat:${TAG}
command: --strict.perms=false -e # -e flag to log to stderr and disable syslog/file output
# If the host system has logs at "/var/log", mount them at "/mnt/log"
# inside the container, where Filebeat can find them.
# volumes: ['/var/log:/mnt/log:ro']
restart: always
secrets:
- source: filebeat.yml
target: /usr/share/filebeat/filebeat.yml
- source: filebeat.keystore
target: /usr/share/filebeat/filebeat.keystore
- source: ca.crt
target: /usr/share/filebeat/certs/ca/ca.crt
depends_on: ['wildfly']
volumes:
- 'wildfly_log:/mnt/log:ro'
healthcheck:
test: filebeat test config
interval: 30s
timeout: 15s
retries: 5
networks:
default:
external:
name: stack-docker_stack
secrets:
ca.crt:
file: ./stack-docker/config/ssl/ca/ca.crt
filebeat.yml:
file: ./stack-docker/config/filebeat/filebeat.yml
filebeat.keystore:
file: ./stack-docker/config/filebeat/filebeat.keystore
volumes:
wildfly_log:
driver: local