forked from observerio/observer-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
102 lines (95 loc) · 1.84 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
version: "3"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.3.1
container_name: observer_elasticsearch
ports:
- 9200
networks:
- back-tier
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
redis:
image: redis:alpine
container_name: observer_redis
ports:
- 6379
networks:
- back-tier
api:
build: ./
volumes:
- ./:/app
dns:
- "8.8.8.8"
networks:
- back-tier
ports:
- "127.0.0.1:8080:8080" # http
- "127.0.0.1:4000:4000" # ws
- "127.0.0.1:4001:4001" # ws
- "127.0.0.1:4002:4002" # ws
- "127.0.0.1:6666:6666" # tcp
- "127.0.0.1:6667:6667" # tcp
- "127.0.0.1:6668:6668" # tcp
tty: true
depends_on:
- redis
- elasticsearch
links:
- redis
- elasticsearch
command: /bin/ash -c "/usr/bin/make server"
logging:
driver: json-file
options:
max-size: "20k"
max-file: "10"
simulate:
build: ./
volumes:
- ./:/app
environment:
TCP_HOST: api
TCP_PORT: 6667
HTTP_HOST: http://api:8080/
dns:
- "8.8.8.8"
networks:
- back-tier
depends_on:
- api
tty: true
links:
- api
command: /bin/ash -c "/usr/bin/make simulate"
web:
build: ./web/
volumes:
- ./web:/app
dns:
- "8.8.8.8"
networks:
- back-tier
depends_on:
- api
tty: true
ports:
- "127.0.0.1:4200:4200"
- "127.0.0.1:49153:49153"
links:
- api
command: /bin/ash -c "yarn && ./node_modules/.bin/ember s"
volumes:
db-data:
networks:
back-tier: