-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
105 lines (97 loc) · 2.17 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
version: '3.6'
services:
client:
build:
context: ./client
dockerfile: Dockerfile-dev
volumes:
- ./client:/app
- ./client/node_modules:/app/node_modules
ports:
- 3000:3000
links:
- server
tty: true
command: yarn start
server:
build:
context: ./server
dockerfile: Dockerfile-dev
volumes:
- ./server:/home/gradle/server
- ./server/data/processed:/root/memegle/images
environment:
- MONGO_URI=mongodb://mongo1:27017/memegle?replicaSet=rs
- ES_URI=es:9200
ports:
- 8080:8080
depends_on:
- monstache
links:
- mongo1
- es
command: ["sh", "./scripts/init-dev.sh"]
mongo1:
hostname: mongo1
container_name: mongo1
image: mongo:4.0-xenial
expose:
- 27017
ports:
- 27017:27017
restart: unless-stopped
volumes:
- rs1:/data/db
entrypoint: ["/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs"]
init_mongo_rs:
image: mongo:4.0-xenial
links:
- mongo1
depends_on:
- mongo1
volumes:
- ./scripts:/scripts
entrypoint: ["sh", "/scripts/mongo_init.sh"]
es:
image: docker.elastic.co/elasticsearch/elasticsearch:6.8.7
container_name: elasticsearch
environment:
- cluster.name=docker-cluster
- xpack.security.enabled=false
- discovery.type=single-node
- network.host=0.0.0.0
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
restart: unless-stopped
# https://rwynn.github.io/monstache-site/start/
monstache:
image: rwynn/monstache:rel5
container_name: monstache
working_dir: /app
command: -f ./monstache.config.toml
volumes:
- ./monstache.config.toml:/app/monstache.config.toml
depends_on:
- init_mongo_rs
- es
env_file:
- ./scripts/env/monstache-cfg.env
ports:
- 8081:8080 # host-port:container-port
links:
- mongo1:mongo1
- es:es
restart: always
volumes:
rs1:
esdata:
driver: local
gradle-cache: