-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
84 lines (81 loc) · 1.76 KB
/
docker-compose.yaml
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
version: "3.9"
services:
voe:
build:
context: .
no_cache: true
dockerfile: Dockerfile
command: ["python", "/voe/frbvoe/server.py"]
environment:
- SANIC_HOSTNAME=0.0.0.0
- SANIC_PORT=8001
- SANIC_ACCESS_LOG=true
- SANIC_AUTO_RELOAD=true
- SANIC_DEBUG=true
- SANIC_WORKERS=2
- SANIC_MONGODB_HOSTNAME=localhost
- SANIC_MONGODB_PORT=27017
network_mode: host
ports:
- "8001:8001"
deploy:
resources:
reservations:
cpus: "0.1"
memory: "128M"
limits:
cpus: "0.5"
memory: "256M"
restart_policy:
condition: on-failure
comet:
build:
context: .
dockerfile: Dockerfile
command: [
"twistd",
"--nodaemon",
"--pidfile=comet.pid",
"comet",
"--receive",
"--broadcast",
"--receive-port=8098",
"--broadcast-port=8099",
"--print-event",
"--local-ivo=ivo://frbvoe/test",
"--author-whitelist=0.0.0.0/0",
]
environment:
- SUBSCRIBERS_LIST:${SUBSCRIBERS_LIST}
network_mode: host
ports:
- "8098:8098"
- "8099:8099"
deploy:
resources:
reservations:
cpus: "0.1"
memory: "128M"
limits:
cpus: "0.5"
memory: "256M"
restart_policy:
condition: on-failure
mongo:
image: mongo:latest
command: mongod --bind_ip_all --dbpath /data/db
network_mode: host
deploy:
resources:
reservations:
cpus: "0.1"
memory: "128M"
limits:
cpus: "0.5"
memory: "256M"
restart_policy:
condition: on-failure
ports:
- "27017:27017"
volumes:
- ./frbvoe-data:/data/db