Files
mpc/deployments/bridge/compose.yml
T
zeekay 5d0517b0db feat: ZAP=9999 across remaining mpc deployments + Dockerfiles
Sweeps the files missed in the earlier commit:
- top-level Dockerfile (EXPOSE)
- minio/lux-mpc-builds/Dockerfile-iam (EXPOSE)
- deployments/bridge/compose.yml (peer addresses + listen)
2025-12-28 15:14:26 -08:00

145 lines
3.3 KiB
YAML

# Legacy bridge deployment -- uses NATS/Consul transport (deprecated).
# New deployments should use consensus mode (ZAP/PoA p2p).
# See deployments/customer-3of5/compose.yml for the consensus-mode reference.
services:
# DEPRECATED: NATS is only needed for --mode=legacy
# nats:
# image: nats:2.10-alpine
# ports:
# - "4222:4222"
# - "8222:8222"
# command: "-js -m 8222"
# networks:
# - mpc-network
# healthcheck:
# test: ["CMD", "nc", "-z", "localhost", "4222"]
# interval: 5s
# timeout: 3s
# retries: 5
# DEPRECATED: Consul is only needed for --mode=legacy
# consul:
# image: consul:1.17
# ports:
# - "8500:8500"
# command: "agent -dev -client=0.0.0.0"
# networks:
# - mpc-network
# healthcheck:
# test: ["CMD", "consul", "members"]
# interval: 5s
# timeout: 3s
# retries: 5
# Lux MPC Node 0 (consensus mode)
lux-mpc-0:
image: ghcr.io/luxfi/mpc:latest
platform: linux/amd64
command:
- mpcd
- start
- --mode=consensus
- --node-id=mpc-0
- --listen=:9999
- --api=:9800
- --data=/data/mpc
- --keys=/keys
- --threshold=2
- --peer=mpc-1@lux-mpc-1:9999
- --peer=mpc-2@lux-mpc-2:9999
- --log-level=info
- --hsm-provider=env
environment:
ZAPDB_PASSWORD: "${ZAPDB_PASSWORD_0}"
volumes:
- mpc-data-0:/data
- ./keys/mpc-0:/keys:ro
ports:
- "9800:9800"
networks:
- mpc-network
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:9800/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 15s
# Lux MPC Node 1 (consensus mode)
lux-mpc-1:
image: ghcr.io/luxfi/mpc:latest
platform: linux/amd64
command:
- mpcd
- start
- --mode=consensus
- --node-id=mpc-1
- --listen=:9999
- --api=:9800
- --data=/data/mpc
- --keys=/keys
- --threshold=2
- --peer=mpc-0@lux-mpc-0:9999
- --peer=mpc-2@lux-mpc-2:9999
- --log-level=info
- --hsm-provider=env
environment:
ZAPDB_PASSWORD: "${ZAPDB_PASSWORD_1}"
volumes:
- mpc-data-1:/data
- ./keys/mpc-1:/keys:ro
ports:
- "9801:9800"
networks:
- mpc-network
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:9800/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 15s
# Lux MPC Node 2 (consensus mode)
lux-mpc-2:
image: ghcr.io/luxfi/mpc:latest
platform: linux/amd64
command:
- mpcd
- start
- --mode=consensus
- --node-id=mpc-2
- --listen=:9999
- --api=:9800
- --data=/data/mpc
- --keys=/keys
- --threshold=2
- --peer=mpc-0@lux-mpc-0:9999
- --peer=mpc-1@lux-mpc-1:9999
- --log-level=info
- --hsm-provider=env
environment:
ZAPDB_PASSWORD: "${ZAPDB_PASSWORD_2}"
volumes:
- mpc-data-2:/data
- ./keys/mpc-2:/keys:ro
ports:
- "9802:9800"
networks:
- mpc-network
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:9800/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 15s
volumes:
mpc-data-0:
mpc-data-1:
mpc-data-2:
networks:
mpc-network:
driver: bridge