This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (71 loc) · 1.56 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
77
78
79
version: "3"
services:
###### 3rd-party services
postgres:
image: postgres:11
restart: unless-stopped
environment:
POSTGRES_USER: 'jepostule'
POSTGRES_PASSWORD: 'mdp'
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres:/var/lib/postgresql/data
redis:
image: redis:4-alpine
command: redis-server --appendonly yes
restart: unless-stopped
ports:
- "${REDIS_PORT:-6379}:6379"
volumes:
- redis:/data
zookeeper:
image: zookeeper:3.4
restart: unless-stopped
environment:
ZOO_MY_ID: 1
ports:
- "${ZOOKEEPER_PORT:-2181}:2181"
volumes:
- zookeeper_data:/data
- zookeeper_datalog:/datalog
kafka:
image: kafka:latest
restart: unless-stopped
environment:
LISTENERS: "${KAFKA_LISTENERS:-kafka}"
ports:
- "${KAFKA_PORT:-9092}:9092"
depends_on:
- zookeeper
volumes:
- kafka:/tmp/kafka-logs
###### Je Postule-specific services
jepostule:
image: jepostule:latest
restart: unless-stopped
ports:
- "${JEPOSTULE_PORT:-8000}:8000"
depends_on:
- kafka
- postgres
jepostule_consume_topics:
image: jepostule:latest
restart: unless-stopped
depends_on:
- kafka
- postgres
command: ./manage.py consumetopics all
jepostule_dequeue_delayed:
image: jepostule:latest
restart: unless-stopped
depends_on:
- kafka
- postgres
command: ./manage.py dequeuedelayed
volumes:
postgres:
redis:
kafka:
zookeeper_data:
zookeeper_datalog: