-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
executable file
·122 lines (110 loc) · 2.8 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
version: '3.1'
services:
mongo:
image: bitnami/mongodb:5.0.9
restart: always
container_name: mdb
ports:
- 27017:27017
volumes:
- .:/bitnami/mongodb
environment:
- MONGODB_ADVERTISED_HOSTNAME=mongo
- MONGODB_REPLICA_SET_MODE=primary
- MONGODB_REPLICA_SET_KEY=${MONGODB_REPLICA_SET_KEY}
- MONGODB_ROOT_PASSWORD=${MONGODB_ROOT_PASSWORD}
mongo-express:
image: mongo-express
restart: always
container_name: mdb-express
ports:
- 8081:8081
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=root
- ME_CONFIG_MONGODB_ADMINPASSWORD=${MONGODB_ROOT_PASSWORD}
- ME_CONFIG_MONGODB_URL=${MDB_HOST_NAME}
depends_on:
- mongo
twitter-stream:
container_name: twitter-stream
build: "./twitter_stream"
restart: always
depends_on:
- mongo
environment:
- API_KEY=${API_KEY}
- API_SECRET_KEY=${API_SECRET_KEY}
- BEARER_TOKEN=${BEARER_TOKEN}
- MDB_HOST_NAME=${MDB_HOST_NAME}
- MDB_DATABASE_NAME=${MDB_DATABASE_NAME}
- MDB_COLLECTION_NAME=${MDB_COLLECTION_NAME}
- SEARCH_RULE=${SEARCH_RULE}
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.3.2
container_name: elasticsearch
restart: always
environment:
- xpack.security.enabled=false
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- elasticsearch-data-volume:/usr/share/elasticsearch/data
ports:
- "9200:9200"
depends_on:
- mongo
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:8.3.2
restart: always
environment:
SERVER_NAME: kibana
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
ports:
- "5601:5601"
depends_on:
- elasticsearch
monstache:
image: rwynn/monstache:rel6
container_name: monstache
working_dir: /monstache
command: -f ./monstache.config.toml
volumes:
- ./monstache:/monstache/
ports:
- "8080:8080"
restart: always
depends_on:
- mongo
- elasticsearch
flask:
container_name: flask
build: "./flask_search"
restart: always
depends_on:
- kibana
- elasticsearch
nginx:
build: ./nginx
container_name: nginx
#environment:
# - SERVER_NAME=${NGINX_SERVER_NAME}
ports:
- "80:80"
restart: always
volumes:
elasticsearch-data-volume:
driver: local
mongodata:
driver: local
networks:
default:
driver: bridge