-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
88 lines (81 loc) · 2.18 KB
/
docker-compose.yaml
File metadata and controls
88 lines (81 loc) · 2.18 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
# Local development: 3 Enigma proxy nodes + 3 RustFS backends
version: "3.8"
services:
# ── RustFS backends ──────────────────────────────────
rustfs-1:
image: rustfs/rustfs:latest
command: ["/data"]
environment:
RUSTFS_ACCESS_KEY: enigma-key-1
RUSTFS_SECRET_KEY: enigma-secret-1
volumes:
- rustfs1-data:/data
ports:
- "19001:9000"
rustfs-2:
image: rustfs/rustfs:latest
command: ["/data"]
environment:
RUSTFS_ACCESS_KEY: enigma-key-2
RUSTFS_SECRET_KEY: enigma-secret-2
volumes:
- rustfs2-data:/data
ports:
- "19002:9000"
rustfs-3:
image: rustfs/rustfs:latest
command: ["/data"]
environment:
RUSTFS_ACCESS_KEY: enigma-key-3
RUSTFS_SECRET_KEY: enigma-secret-3
volumes:
- rustfs3-data:/data
ports:
- "19003:9000"
# ── Enigma proxy nodes ──────────────────────────────
enigma-0:
build: .
depends_on: [rustfs-1, rustfs-2, rustfs-3]
environment:
ENIGMA_PASSPHRASE: dev-passphrase
RUST_LOG: enigma=info
command: ["--config", "/etc/enigma/config.toml"]
volumes:
- enigma0-data:/data
- ./dev/config-node1.toml:/etc/enigma/config.toml:ro
ports:
- "8333:8333"
- "9100:9000"
enigma-1:
build: .
depends_on: [rustfs-1, rustfs-2, rustfs-3]
environment:
ENIGMA_PASSPHRASE: dev-passphrase
RUST_LOG: enigma=info
command: ["--config", "/etc/enigma/config.toml"]
volumes:
- enigma1-data:/data
- ./dev/config-node2.toml:/etc/enigma/config.toml:ro
ports:
- "8334:8333"
- "9101:9000"
enigma-2:
build: .
depends_on: [rustfs-1, rustfs-2, rustfs-3]
environment:
ENIGMA_PASSPHRASE: dev-passphrase
RUST_LOG: enigma=info
command: ["--config", "/etc/enigma/config.toml"]
volumes:
- enigma2-data:/data
- ./dev/config-node3.toml:/etc/enigma/config.toml:ro
ports:
- "8335:8333"
- "9102:9000"
volumes:
rustfs1-data:
rustfs2-data:
rustfs3-data:
enigma0-data:
enigma1-data:
enigma2-data: