This repository has been archived by the owner on Nov 7, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
docker-compose.yml
76 lines (71 loc) · 1.58 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
version: '3'
services:
redis:
build: services/redis/
volumes:
- ./services/redis:/data
- ./services/redis/redis.conf:/usr/local/etc/redis/redis.conf
restart: always
search:
build:
context: ./
dockerfile: services/search/Dockerfile
volumes:
- ./services/search:/app
- ./shared:/app/shared
- ./praw.ini:/app/praw.ini
environment:
- CONFIG=${CONFIG}
- REDIS_HOST=redis
- REDIS_PORT=6379
depends_on:
- redis
restart: always
command: python -u search.py
filter:
build:
context: ./
dockerfile: services/filter/Dockerfile
volumes:
- ./services/filter:/app
- ./shared:/app/shared
- ./praw.ini:/app/praw.ini
environment:
- CONFIG=${CONFIG}
- REDIS_HOST=redis
- REDIS_PORT=6379
depends_on:
- redis
restart: always
command: python -u filter.py
upload:
build:
context: ./
dockerfile: services/upload/Dockerfile
volumes:
- ./services/upload:/app
- ./shared:/app/shared
environment:
- CONFIG=${CONFIG}
- REDIS_HOST=redis
- REDIS_PORT=6379
depends_on:
- redis
restart: always
command: python -u upload.py
reply:
build:
context: ./
dockerfile: services/reply/Dockerfile
volumes:
- ./services/reply:/app
- ./shared:/app/shared
- ./praw.ini:/app/praw.ini
environment:
- CONFIG=${CONFIG}
- REDIS_HOST=redis
- REDIS_PORT=6379
depends_on:
- redis
restart: always
command: python3 -u reply.py