-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (74 loc) · 1.68 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
version: '3.7'
services:
# database
mongodb:
image: mongo:4.0.12
volumes:
- db-data:/data/db
networks:
- backend
ports:
- 27017:27017
restart: always
# message queue
rabbitmq:
image: rabbitmq
networks:
- backend
ports:
- 5672:5672
restart: always
# ton + celery
ton-node:
build:
context: .
dockerfile: deploy/Dockerfile.node
volumes:
- ton-node-db:/var/ton-work/db
environment:
MONGO_HOST: localhost
MONGO_PORT: 27017
MONGO_DATABASE: production_ton_monitor
RABBITMQ_HOST: localhost
RABBITMQ_PORT: 5672
RABBITMQ_USER: guest
RABBITMQ_PASSWORD: guest
network_mode: host
depends_on:
- mongodb
- rabbitmq
restart: always
# web server
flask-server:
build:
context: .
dockerfile: deploy/Dockerfile.web
environment:
MONGO_HOST: mongodb
MONGO_PORT: 27017
MONGO_DATABASE: production_ton_monitor
depends_on:
- mongodb
networks:
- backend
ports:
- 8080:8080
restart: always
# react app
frontend:
build:
context: .
dockerfile: deploy/Dockerfile.frontend
networks:
- backend
ports:
- 80:3000
restart: always
# TODO: make nginx
networks:
backend:
volumes:
db-data:
external: false
ton-node-db:
external: false