Repository navigation
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
144 lines (133 loc) · 3.11 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
144 lines (133 loc) · 3.11 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
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
135
136
137
138
139
140
141
142
143
144
version: '3.8'
services:
# ==========================================
# INFRASTRUCTURE DATABASES
# ==========================================
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
rabbitmq:
image: rabbitmq:3-management-alpine
environment:
RABBITMQ_DEFAULT_USER: user
RABBITMQ_DEFAULT_PASS: password
ports:
- "5672:5672" # AMQP
- "15672:15672" # Management UI
volumes:
- rabbitmq_data:/var/lib/rabbitmq
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 5s
timeout: 5s
retries: 5
# postgres:
# image: postgres:15-alpine
# environment:
# POSTGRES_USER: user
# POSTGRES_PASSWORD: password
# POSTGRES_DB: chess
# ports:
# - "5432:5432"
# volumes:
# - postgres_data:/var/lib/postgresql/data
# healthcheck:
# test: ["CMD-SHELL", "pg_isready -U user -d chess"]
# interval: 5s
# timeout: 5s
# retries: 5
#
# mongodb:
# image: mongo:6
# environment:
# MONGO_INITDB_ROOT_USERNAME: user
# MONGO_INITDB_ROOT_PASSWORD: password
# MONGO_INITDB_DATABASE: chess
# ports:
# - "27017:27017"
# volumes:
# - mongodb_data:/data/db
# healthcheck:
# test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
# interval: 5s
# timeout: 5s
# retries: 5
# ==========================================
# NODE.JS / BUN SERVICES
# ==========================================
http-server:
build:
context: .
dockerfile: apps/http-server/Dockerfile
ports:
- "3002:3002"
env_file:
- apps/http-server/.env
depends_on:
redis:
condition: service_healthy
ws-server:
build:
context: .
dockerfile: apps/ws-server/Dockerfile
ports:
- "8080:8080"
env_file:
- apps/ws-server/.env
depends_on:
redis:
condition: service_healthy
# ==========================================
# RUST SERVICES
# ==========================================
game-server:
build:
context: .
dockerfile: apps/game-server/Dockerfile
ports:
- "50051:50051"
env_file:
- apps/game-server/.env
depends_on:
redis:
condition: service_healthy
sync-worker:
build:
context: .
dockerfile: apps/sync-worker/Dockerfile
env_file:
- apps/sync-worker/.env
depends_on:
redis:
condition: service_healthy
notification-worker:
build:
context: .
dockerfile: apps/notification-worker/Dockerfile
env_file:
- apps/notification-worker/.env
depends_on:
rabbitmq:
condition: service_healthy
matchmaker:
build:
context: .
dockerfile: apps/matchmaker/Dockerfile
env_file:
- apps/matchmaker/.env
depends_on:
redis:
condition: service_healthy
volumes:
redis_data:
rabbitmq_data:
# postgres_data:
# mongodb_data: