-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (71 loc) · 1.69 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
version: '2.0'
services:
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
restart:
always
networks:
- movies-net
postgresql:
image: postgres
container_name: postgresql
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=dev
restart:
always
networks:
- movies-net
storage:
image: movies_storage
container_name: movies_storage
environment:
- MOVIES_STORAGE_MESSAGESURL=amqp://guest:guest@rabbitmq:5672
- MOVIES_STORAGE_DATABASEURL=postgresql://postgres:postgres@postgresql/dev?sslmode=disable
restart:
always
networks:
- movies-net
depends_on:
- rabbitmq
- postgresql
parser:
image: movies_parser
container_name: movies_parser
environment:
- MOVIES_PARSER_MESSAGESURL=amqp://guest:guest@rabbitmq:5672
- MOVIES_PARSER_LANGUAGE=ru-RU
- MOVIES_PARSER_TIMEOUTMSAFTERMOVIE=10000
- MOVIES_PARSER_TIMEOUTMSAFTERTASK=3600000
- MOVIES_PARSER_MEDIAINDEXLIMIT=200
- MOVIES_PARSER_MOVIESCOUNT=500
restart:
always
networks:
- movies-net
depends_on:
- rabbitmq
bot:
image: movies_bot
container_name: movies_bot
environment:
- MOVIES_BOT_MESSAGESURL=amqp://guest:guest@rabbitmq:5672
- MOVIES_BOT_TOKEN=XXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- MOVIES_BOT_TIMEOUTMS=100
- MOVIES_BOT_OPTIONSCOUNT=7
- MOVIES_BOT_SIMILARCOUNT=2
restart:
always
networks:
- movies-net
depends_on:
- rabbitmq
networks:
movies-net: