-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yml
89 lines (81 loc) · 1.81 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
version: '3'
services:
server_backend:
build:
context: .
dockerfile: docker/Dockerfile
command: bash -c "mongodb-migrate --url mongodb://172.19.10.10:27017/XTC-Dev --migrations /xtcryptosignals/xtcryptosignals/server/migrations/
&& xt-server --port 5000"
ports:
- "127.0.0.1:5000:5000"
depends_on:
- db
- redis
networks:
backend:
ipv4_address: 172.19.10.2
server_socketio:
build:
context: .
dockerfile: docker/Dockerfile
command: xt-server --port 5001
ports:
- "127.0.0.1:5001:5001"
depends_on:
- db
- redis
- server_backend
networks:
backend:
ipv4_address: 172.19.10.3
ticker:
build:
context: .
dockerfile: docker/Dockerfile
command: xt-tasks --log-ticker-minimal
environment:
- SETTINGS_APP=/xtcryptosignals/xtcryptosignals/config/server.docker.env
depends_on:
- db
- redis
- server_backend
networks:
backend:
ipv4_address: 172.19.10.4
client:
build:
context: .
dockerfile: docker/Dockerfile
command: xt-client --num-workers 2
environment:
- FLASK_ENV=docker
- SETTINGS_APP=/xtcryptosignals/xtcryptosignals/config/client.docker.env
ports:
- "127.0.0.1:8000:8000"
networks:
backend:
ipv4_address: 172.19.10.5
db:
build:
context: .
dockerfile: docker/db.Dockerfile
restart: always
volumes:
- ~/data:/data/db
ports:
- "127.0.0.1:27017:27017"
networks:
backend:
ipv4_address: 172.19.10.10
redis:
image: "redis:alpine"
ports:
- "127.0.0.1:6379:6379"
networks:
backend:
ipv4_address: 172.19.10.6
networks:
backend:
ipam:
config:
- subnet: 172.19.10.0/24