-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (60 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
62
63
64
65
version: '3'
services:
app:
build:
context: .
dockerfile: ./Dockerfile
ports:
- 3000:3000 # localhost only by default
links:
- mongo:mongo
- redis:redis
- elasticsearch:elasticsearch
depends_on:
- mongo
- redis
- elasticsearch
environment:
- MONGO_URI=mongodb://mongo:27017/crowi
- REDIS_URL=redis://redis:6379/crowi
- ELASTICSEARCH_URI=http://elasticsearch:9200/crowi
- PASSWORD_SEED=changeme
# - FILE_UPLOAD=local # activate this line if you do not want to use AWS for file upload
command: "dockerize
-wait tcp://mongo:27017
-wait tcp://redis:6379
-wait tcp://elasticsearch:9200
-timeout 60s
npm run server:prod"
volumes:
- crowi_data:/data
mongo:
image: mongo:3.4
volumes:
- mongo_configdb:/data/configdb
- mongo_db:/data/db
redis:
image: redis:3-alpine
volumes:
- redis_data:/data
elasticsearch:
image: elasticsearch:5.3-alpine
environment:
- "ES_JAVA_OPTS=-Xms256m -Xmx256m" # increase amount if you have enough memory
command:
- sh
- -c
- "./bin/elasticsearch-plugin list | grep -q analysis-kuromoji || ./bin/elasticsearch-plugin install analysis-kuromoji;
./bin/elasticsearch-plugin list | grep -q analysis-icu || ./bin/elasticsearch-plugin install analysis-icu;
/docker-entrypoint.sh elasticsearch"
volumes:
- es_data:/usr/share/elasticsearch/data
- es_plugins:/usr/share/elasticsearch/plugins
- ./esconfig:/usr/share/elasticsearch/config
volumes:
crowi_data:
mongo_configdb:
mongo_db:
redis_data:
es_data:
es_plugins: