-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
74 lines (67 loc) · 1.53 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:
db:
image: m.docker-registry.ir/postgres:10.10
volumes:
- local_db_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres-user
POSTGRES_PASSWORD: postgres-pass
POSTGRES_DB: postgres-db
task_broker:
image: redis
redis:
image: redis
server:
build:
context: .
dockerfile: Dockerfile
environment:
DB_HOST: db
DB_PORT: 5432
DB_NAME: postgres-db
DB_USER: postgres-user
DB_PASS: postgres-pass
MACHINERY_BROKER: "redis://task_broker:6379"
MACHINERY_RESULTS_BACKEND: "redis://task_broker:6379"
MAX_URL_COUNT: 20
JWT_SECRET: secret
FUNC: server
ports:
- "8010:8080"
depends_on:
- db
- task_broker
- redis
local_worker:
build:
context: .
dockerfile: Dockerfile
environment:
DB_HOST: db
DB_PORT: 5432
DB_NAME: postgres-db
DB_USER: postgres-user
DB_PASS: postgres-pass
MACHINERY_BROKER: "redis://task_broker:6379"
MACHINERY_RESULTS_BACKEND: "redis://task_broker:6379"
REDIS_HOST: "redis:6379"
FUNC: local_worker
depends_on:
- db
- task_broker
- redis
monitoring_worker:
build:
context: .
dockerfile: Dockerfile
environment:
MACHINERY_BROKER: "redis://task_broker:6379"
MACHINERY_RESULTS_BACKEND: "redis://task_broker:6379"
FUNC: monitoring_worker
depends_on:
- db
- task_broker
- redis
volumes:
local_db_data: