-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
79 lines (75 loc) · 2.24 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
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3.7'
services:
mongodb:
image: mongo:3.6.17
container_name: mongo
restart: always
environment:
- MONGO_INITDB_DATABASE=${MONGO_DB}
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USER}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
ports:
- 27017:27017
- 27018:27017
labels:
- traefik.tcp.routers.mongo.rule=HostSNI(`db.kicksware.com`)
- traefik.tcp.routers.mongo.tls=true
- traefik.docker.network=web
networks:
- web
- data
volumes:
- type: bind
source: /source/backup/mongo
target: /backup
elasticsearch:
container_name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.0
restart: always
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
environment:
- xpack.monitoring.enabled=true
- xpack.watcher.enabled=false
- ES_JAVA_OPTS=-Xms512m -Xmx512m
- discovery.type=single-node
labels:
- traefik.http.routers.elasticsearch-secure.rule=Host(`search.kicksware.com`) && PathPrefix(`/`)
- traefik.http.routers.elasticsearch-secure.tls=true
- traefik.http.routers.elasticsearch-secure.tls.certresolver=le
- traefik.http.routers.elasticsearch.rule=Host(`search.kicksware.com`) && PathPrefix(`/`)
- traefik.http.routers.elasticsearch.middlewares=https-redirect
- traefik.docker.network=web
networks:
- web
- data
ports:
- 9200:9200
kibana:
image: docker.elastic.co/kibana/kibana:7.6.1
container_name: kibana
depends_on:
- elasticsearch
environment:
- ELASTICSEARCH_URL=https://search.kicksware.com/
labels:
- traefik.http.routers.kibana-secure.rule=Host(`analitics.kicksware.com`) && PathPrefix(`/`)
- traefik.http.routers.kibana-secure.tls=true
- traefik.http.routers.kibana-secure.tls.certresolver=le
- traefik.http.routers.kibana.rule=Host(`analitics.kicksware.com`) && PathPrefix(`/`)
- traefik.http.routers.kibana.middlewares=https-redirect
- traefik.docker.network=web
ports:
- 5601:5601
networks:
- web
- data
logging:
driver: none
networks:
data:
external: true
web:
external: true
volumes:
elasticsearch-data: