-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
91 lines (86 loc) · 2.07 KB
/
Copy pathdocker-compose.yml
File metadata and controls
91 lines (86 loc) · 2.07 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
87
88
89
90
91
version: '3'
services:
frontend:
container_name: skribblol-frontend
build: ./frontend
volumes:
- ./frontend:/usr/src/app
ports:
- "5173:5173"
restart: always
game-service:
container_name: game-service
build: ./game-service
volumes:
- ./game-service:/usr/src/app
ports:
- "5000:5000"
restart: always
depends_on:
redis:
condition: service_started
rabbitmq:
condition: service_healthy
environment:
# Docker Compose specific environment variables
- RABBITMQ_URL=amqp://admin:password@rabbitmq:5672
- REDIS_HOST=redis
- REDIS_PORT=6379
drawing-service:
container_name: drawing-service
build: ./drawing-service
volumes:
- ./drawing-service:/usr/src/app
ports:
- "5001:5001"
restart: always
depends_on:
redis:
condition: service_started
rabbitmq:
condition: service_healthy
environment:
# Docker Compose specific environment variables
- RABBITMQ_URL=amqp://admin:password@rabbitmq:5672
- REDIS_HOST=redis
- REDIS_PORT=6379
chat-service:
container_name: chat-service
build: ./chat-service
volumes:
- ./chat-service:/usr/src/app
ports:
- "5002:5002"
restart: always
depends_on:
redis:
condition: service_started
rabbitmq:
condition: service_healthy
environment:
# Docker Compose specific environment variables
- RABBITMQ_URL=amqp://admin:password@rabbitmq:5672
- REDIS_HOST=redis
- REDIS_PORT=6379
redis:
image: redis:7.4.0
container_name: redis
ports:
- "6379:6379"
restart: always
rabbitmq:
image: rabbitmq:3.12.10-management
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
restart: always
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=password
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
interval: 30s
timeout: 30s
retries: 3
start_period: 60s