-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
65 lines (60 loc) · 1.89 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
version: "3.7"
services:
bot: # discord.py bot
container_name: ocr-bot
restart: always
build:
context: .
dockerfile: ./src/Dockerfile
volumes:
- botdata:/usr/src/bot/sql/
networks:
- bot-network
depends_on:
- elasticsearch
links:
- elasticsearch
environment:
GOOGLE_APPLICATION_CREDENTIALS: "./gcloud_keys.json"
elasticsearch: # Elasticsearch Instance
container_name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.7.0
restart: always
volumes: # Persist ES data in seperate "esdata" volume
- esdata:/usr/share/elasticsearch/data
- /home/jb/docker/ocr-bot-discord/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m -Des.transport.cname_in_publish_address=true"
- discovery.type=single-node
- http.host=0.0.0.0
- transport.host=localhost
- network.host=0.0.0.0
networks:
- bot-network
expose:
- "9200"
#ports: # Expose Elasticsearch ports
# - "127.0.0.1:9200:9200"
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:6.8.9
restart: always
environment:
SERVER_NAME: localhost
ELASTICSEARCH_URL: http://elasticsearch:9200/
ports:
- 127.0.0.1:5601:5601
volumes:
- type: volume
source: logs
target: /var/log
- /home/jb/docker/ocr-bot-discord/kibana.yml:/usr/share/kibana/config/kibana.yml
networks:
- bot-network
volumes:
esdata:
botdata:
logs:
networks:
bot-network: