-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
79 lines (71 loc) · 1.38 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:
# Chat Service
chat:
build:
context: chat_application/
dockerfile: Dockerfile
image: elc_chat_application
container_name: chat_application
restart: always
ports:
- "8000:8000"
env_file:
- .env
depends_on:
- mongodb
- redis
- rabbitmq
# Notification Service
notification:
build:
context: notif_application
dockerfile: Dockerfile
image: elc_notification_application
container_name: notification_application
restart: always
ports:
- "8080:8080"
env_file:
- .env
depends_on:
- mongodb
- rabbitmq
- redis
- chat
# Scheduler Service
scheduler:
build:
context: scheduler_application
dockerfile: Dockerfile
image: elc_scheduler_application
container_name: scheduler_application
env_file:
- .env
depends_on:
- mongodb
- rabbitmq
- redis
ports:
- "8088:8088"
# MongoDB Service
mongodb:
image: mongo:latest
container_name: mongodb
ports:
- "27017:27017"
# volumes:
# - mongo_data:/data/db
# RabbitMQ Service
rabbitmq:
image: rabbitmq:3.13.3-management-alpine
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
# Redis Service
redis:
image: redis:alpine
container_name: redis
ports:
- "6379:6379"