-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
86 lines (74 loc) · 2.13 KB
/
Copy pathdocker-compose-dev.yml
File metadata and controls
86 lines (74 loc) · 2.13 KB
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
version: "3.9"
services:
postgres:
image: postgres:12.9
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5433:5432"
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:
- "9092:9092"
environment:
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
depends_on:
- zookeeper
celery-worker:
build:
context: ./
dockerfile: ./docs/docker/complex_rest/Dockerfile
image: "complex_rest_for_dtcd_simple_math_core_celery:1.1.2"
volumes:
- ./dtcd_simple_math_core:/complex_rest/plugins/dtcd_simple_math_core
- ./logs:/complex_rest/logs
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_dtcd_simple_math_core_celery:1.1.2"
volumes:
- ./dtcd_simple_math_core:/complex_rest/plugins/dtcd_simple_math_core
- ./logs:/complex_rest/logs
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_dtcd_simple_math_core:1.1.2"
volumes:
- ./dtcd_simple_math_core:/complex_rest/plugins/dtcd_simple_math_core
- ./logs:/complex_rest/logs
- ./tests:/complex_rest/tests
environment:
- dtcd_simple_math_core_conf=/complex_rest/plugins/dtcd_simple_math_core/dtcd_simple_math_core.conf
user: ${CURRENT_UID}
ports:
- "8080:8080"
command: "python /complex_rest/complex_rest/manage.py runserver [::]:8080"
depends_on:
- postgres
- redis
- kafka