-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
66 lines (60 loc) · 2.42 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
62
63
64
65
66
version: '3.1'
services:
init-elasticsearch:
image: registry.hub.docker.com/library/busybox:latest
command: >
sh -c "mkdir -p /usr/share/elasticsearch/data && chown 1000:1000 /usr/share/elasticsearch/data"
volumes:
- ./elasticsearch:/usr/share/elasticsearch/data
nginx:
image: openvidu/openvidu-proxy:5.0.0
restart: on-failure
ports:
- "80:80"
- "443:443"
volumes:
- ./certificates:/etc/letsencrypt
- ./owncert:/owncert
- ./custom-nginx-vhosts:/etc/nginx/vhost.d/
- ./custom-nginx.conf.template:/tmp/custom-nginx.conf.template
- ./nginx.conf:/etc/nginx/nginx.conf
environment:
- DOMAIN_OR_PUBLIC_IP=${DOMAIN_OR_PUBLIC_IP}
- CERTIFICATE_TYPE=${CERTIFICATE_TYPE}
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
- PUBLIC_IP=${PROXY_PUBLIC_IP:-auto-ipv4}
command: >
bash -c "sed \"s/DOMAIN_OR_PUBLIC_IP/${DOMAIN_OR_PUBLIC_IP}/g\" /tmp/custom-nginx.conf.template > /tmp/custom-nginx.conf &&
mv /tmp/custom-nginx.conf /custom-nginx/custom-nginx.conf &&
/usr/local/bin/entrypoint.sh"
logging:
options:
max-size: "${DOCKER_LOGS_MAX_SIZE:-100M}"
elasticsearch:
image: openvidu/openvidu-elasticsearch:7.8.0
restart: always
environment:
- discovery.type=single-node
- xpack.security.enabled=true
- "ES_JAVA_OPTS=${ES_JAVA_OPTS:--Xms2g -Xmx2g}"
volumes:
- ./elasticsearch:/usr/share/elasticsearch/data
command: >
/bin/bash -c "elasticsearch-users useradd ${ELASTICSEARCH_USERNAME}
-p ${ELASTICSEARCH_PASSWORD} -r superuser;
elasticsearch-users passwd ${ELASTICSEARCH_USERNAME} -p ${ELASTICSEARCH_PASSWORD};
docker-entrypoint.sh"
logging:
options:
max-size: "${DOCKER_LOGS_MAX_SIZE:-100M}"
kibana:
image: docker.elastic.co/kibana/kibana:7.8.0
restart: always
environment:
- SERVER_BASEPATH="/kibana"
- xpack.security.enabled=true
- ELASTICSEARCH_USERNAME=${ELASTICSEARCH_USERNAME}
- ELASTICSEARCH_PASSWORD=${ELASTICSEARCH_PASSWORD}
logging:
options:
max-size: "${DOCKER_LOGS_MAX_SIZE:-100M}"