forked from paritytech/substrate-telemetry
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (70 loc) · 1.9 KB
/
Copy pathdocker-compose.yml
File metadata and controls
74 lines (70 loc) · 1.9 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
# Quantus Telemetry - Docker Compose Configuration
#
# This is a symbolic link / default file.
# Use the appropriate file for your system:
#
# - docker-compose.x86.yml - For x86-64/AMD64 Linux systems
# - docker-compose.arm64.yml - For ARM64/Apple Silicon (M1/M2/M3)
#
# Usage:
# docker compose -f docker-compose.x86.yml up --build
# docker compose -f docker-compose.arm64.yml up --build
# This file defaults to ARM64 configuration (for Apple Silicon)
# If you're on x86-64 Linux, use docker-compose.x86.yml instead
services:
telemetry-frontend:
container_name: quantus-telemetry-frontend
build:
dockerfile: Dockerfile
context: ./frontend/
read_only: true
tmpfs:
- /var/cache/nginx:uid=101,gid=101
- /var/run:uid=101,gid=101
- /app/tmp:uid=101,gid=101
environment:
# For local development: ws://localhost:8000/feed
# For production: wss://feed-telemetry.quantus.cat/feed
SUBSTRATE_TELEMETRY_URL: wss://feed-telemetry.quantus.cat/feed
ports:
- 3000:8000
expose:
- 3000
restart: unless-stopped
depends_on:
- telemetry-backend-core
telemetry-backend-shard:
container_name: quantus-telemetry-shard
platform: linux/amd64
build:
dockerfile: Dockerfile
context: ./backend/
read_only: true
command: [
'telemetry_shard',
'--listen', '0.0.0.0:8001',
'--core', 'http://telemetry-backend-core:8000/shard_submit'
]
ports:
- 8001:8001
expose:
- 8001
restart: unless-stopped
depends_on:
- telemetry-backend-core
telemetry-backend-core:
container_name: quantus-telemetry-core
platform: linux/amd64
build:
dockerfile: Dockerfile
context: ./backend/
read_only: true
command: [
'telemetry_core',
'--listen', '0.0.0.0:8000'
]
ports:
- 8000:8000
expose:
- 8000
restart: unless-stopped