-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·153 lines (140 loc) · 2.96 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
version: '3.7'
services:
tasker:
image: strm/tasker
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
- tweet-master
environment:
configuration: |
schedule:
- cron: 00 */5 * * * *
task: scheduler
- cron: 00 */15 * * * *
task: parser
tasks:
docker:
- name: scheduler
image: tweet-master-scheduler:latest
network: tweet-master
script:
- python3 -m Scheduler.scheduler_rabbit
- name: parser
image: tweet-master-redis-parser:latest
network: tweet-master
script:
- python3 -m RedisParser.parser
rsyslog:
build:
context: .
dockerfile: Dockerfiles/Rsyslog.Dockerfile
image: tweet-master-rsyslog:latest
networks:
tweet-master:
aliases:
- rsyslog
mysql:
image: mysql:8
networks:
tweet-master:
aliases:
- mysqlTweetMaster
environment:
MYSQL_ROOT_PASSWORD: "4236"
campaign_api:
build:
context: .
dockerfile: Dockerfiles/Campaign_api.Dockerfile
image: tweet-master-campaign-api:latest
networks:
tweet-master:
aliases:
- campaign_api
ports:
- 5000:5000
depends_on:
- rsyslog
- mysql
- load_balancer
load_balancer:
build:
context: .
dockerfile: Dockerfiles/LB.Dockerfile
image: load-balancer:latest
networks:
- tweet-master
ports:
- 80:80
redis:
image: redis:5-alpine
networks:
tweet-master:
aliases:
- redisfetcher
volumes:
- type: volume
source: redis-dump
target: /data
mysql:
image: mysql:8
networks:
tweet-master:
aliases:
- mysqlTweetMaster
environment:
MYSQL_ROOT_PASSWORD: "4236"
rabbitmq:
image: rabbitmq:3-alpine
networks:
tweet-master:
aliases:
- rabbitTweetMaster
fetcher:
build:
context: .
dockerfile: Dockerfiles/Fetcher.Dockerfile
image: tweet-master-fetcher:latest
networks:
tweet-master:
aliases:
- fetcher
depends_on:
- rsyslog
- redis
- mysql
- rabbitmq
scheduler:
build:
context: .
dockerfile: Dockerfiles/Scheduler.Dockerfile
image: tweet-master-scheduler:latest
networks:
- tweet-master
depends_on:
- rsyslog
- redis
- mysql
- rabbitmq
redis-parser:
build:
context: .
dockerfile: Dockerfiles/RedisParser.Dockerfile
image: tweet-master-redis-parser:latest
networks:
- tweet-master
volumes:
- type: volume
source: redis-dump
target: /data
depends_on:
- rsyslog
- redis
- mysql
networks:
tweet-master:
name: tweet-master
external: false
volumes:
redis-dump:
name: redis-dump