-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
145 lines (124 loc) · 2.43 KB
/
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
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
145
services:
assets:
build: assets
core:
build: core
interface-deps:
build:
context: interface
target: deps
interface:
build: interface
depends_on:
- assets
- core
- interface-deps
sandbox-deps:
build:
context: sandbox
target: deps
sandbox:
build: sandbox
ports:
- "127.0.0.1:2437:5173"
depends_on:
- sandbox-deps
- core
- interface
offline-deps:
build:
context: offline
target: deps
offline:
build: offline
ports:
- "127.0.0.1:5423:5173"
depends_on:
- offline-deps
- core
- interface
coverage:
build:
context: .
dockerfile: coverage/Dockerfile
ports:
- "6245:80"
depends_on:
- core
back-deps:
build:
context: back
target: deps
back:
build: back
environment:
DATABASE_HOST: database
DATABASE_USERNAME: user
DATABASE_DB_NAME: autochess
VITE_WEBSOCKET_PROTOCOL: ${VITE_WEBSOCKET_PROTOCOL}
REDIS_URL: redis://bus
ports:
- ${VITE_WEBSOCKET_PORT_A}:3000
depends_on:
- core
- database
- replication
- bus
- back-deps
- prometheus
- loki
restart: always
back-b:
extends: back
ports: !override
- ${VITE_WEBSOCKET_PORT_B}:3000
back-c:
extends: back
ports: !override
- ${VITE_WEBSOCKET_PORT_C}:3000
back-d:
extends: back
ports: !override
- ${VITE_WEBSOCKET_PORT_D}:3000
back-e:
extends: back
ports: !override
- ${VITE_WEBSOCKET_PORT_E}:3000
database:
build: database
replication:
build: replication
depends_on:
- database
bus:
image: redis:7
ingame-deps:
build:
context: ingame
target: deps
ingame:
build:
context: ingame
args:
- VITE_WEBSOCKET_PROTOCOL=${VITE_WEBSOCKET_PROTOCOL}
- VITE_WEBSOCKET_PORTS=${VITE_WEBSOCKET_PORTS}
- VITE_WEBSOCKET_DOMAINS=${VITE_WEBSOCKET_DOMAINS}
environment:
VITE_WEBSOCKET_PROTOCOL: ${VITE_WEBSOCKET_PROTOCOL}
VITE_WEBSOCKET_PORTS: ${VITE_WEBSOCKET_PORTS}
VITE_WEBSOCKET_DOMAINS: ${VITE_WEBSOCKET_DOMAINS}
ports:
- 53015:53015
depends_on:
- back
- core
- interface
- ingame-deps
prometheus:
build: prometheus
ports:
- 32090:9090
loki:
image: grafana/loki
ports:
- 31090:3100