forked from ISGNeuroTeam/otl_interpreter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
134 lines (110 loc) · 3.65 KB
/
docker-compose-dev.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
version: "3.9"
services:
postgres:
image: postgres:12.9
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5433:5432"
volumes:
- ./docs/docker/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
redis:
image: redis
ports:
- "6380:6379"
zookeeper:
image: 'bitnami/zookeeper:3.6.3'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
image: 'bitnami/kafka:3.0.0'
ports:
- "9094:9094"
environment:
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_LISTENERS=INTERNAL://0.0.0.0:9092,OUTSIDE://0.0.0.0:9094
- KAFKA_ADVERTISED_LISTENERS=INTERNAL://kafka:9092,OUTSIDE://localhost:9094
- KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=INTERNAL:PLAINTEXT,OUTSIDE:PLAINTEXT
- KAFKA_INTER_BROKER_LISTENER_NAME=INTERNAL
depends_on:
- zookeeper
celery-worker:
build:
context: ./
dockerfile: ./docs/docker/complex_rest/Dockerfile
image: "complex_rest_for_plugin_celery:1.0.2"
volumes:
- ./otl_interpreter:/complex_rest/plugins/otl_interpreter
- ./ot_simple_rest_job_proxy:/complex_rest/plugins/ot_simple_rest_job_proxy
- ./docs/docker:/opt/docker
environment:
- otl_interpreter_conf=/opt/docker/complex_rest/otl_interpreter.conf
user: ${CURRENT_UID}
depends_on:
- postgres
- redis
- kafka
command: "celery --app core.celeryapp:app worker --loglevel=INFO --concurrency 8"
celery-beat:
build:
context: ./
dockerfile: ./docs/docker/complex_rest/Dockerfile
image: "complex_rest_for_plugin_celery:1.0.2"
volumes:
- ./otl_interpreter:/complex_rest/plugins/otl_interpreter
- ./ot_simple_rest_job_proxy:/complex_rest/plugins/ot_simple_rest_job_proxy
- ./docs/docker:/opt/docker
environment:
- otl_interpreter_conf=/opt/docker/complex_rest/otl_interpreter.conf
user: ${CURRENT_UID}
depends_on:
- postgres
- redis
- kafka
command: "celery --app core.celeryapp:app beat -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler"
complex_rest:
build:
context: ./
dockerfile: ./docs/docker/complex_rest/Dockerfile
image: "complex_rest_for_plugin:1.0.2"
volumes:
- ./otl_interpreter:/complex_rest/plugins/otl_interpreter
- ./ot_simple_rest_job_proxy:/complex_rest/plugins/ot_simple_rest_job_proxy
- ./logs:/complex_rest/logs
- ./tests:/complex_rest/tests
- ./docs/docker:/opt/docker
environment:
- otl_interpreter_conf=/opt/docker/complex_rest/otl_interpreter.conf
entrypoint: /opt/docker/complex_rest/entrypoint.sh
user: ${CURRENT_UID}
ports:
- "8080:8080"
command: "python /complex_rest/complex_rest/manage.py runserver [::]:8080"
depends_on:
- postgres
- redis
- kafka
dispatcher:
build:
context: ./
dockerfile: ./docs/docker/complex_rest/Dockerfile
image: "complex_rest_for_plugin:1.1.2"
volumes:
- ./otl_interpreter:/complex_rest/plugins/otl_interpreter
- ./ot_simple_rest_job_proxy:/complex_rest/plugins/ot_simple_rest_job_proxy
- ./logs:/complex_rest/logs
- ./tests:/complex_rest/tests
- ./docs/docker:/opt/docker
entrypoint: /opt/docker/complex_rest/dispatcher_entrypoint.sh
environment:
- otl_interpreter_conf=/opt/docker/complex_rest/otl_interpreter.conf
user: ${CURRENT_UID}
command: "python -u /complex_rest/plugins/otl_interpreter/dispatcher/main.py"
depends_on:
- postgres
- redis
- kafka
- complex_rest