Add contained MEV backend CT runbook

This commit is contained in:
defiQUG
2026-04-12 20:25:31 -07:00
parent 614d045842
commit 5d5d7a7db4
9 changed files with 554 additions and 5 deletions

View File

@@ -0,0 +1,23 @@
# MEV platform runtime env for the dedicated backend CT
# Copy inside CT to: /etc/mev-platform/backend.env
# Core config
MEV_CONFIG=/opt/proxmox/MEV_Bot/mev-platform/config.dev.toml
MEV_ADMIN_PORT=9090
MEV_SUPERVISOR_PORT=9091
MEV_GRAPH_URL=http://127.0.0.1:9082
MEV_SUPERVISOR_URL=http://127.0.0.1:9091
MEV_SUPERVISOR_BIN_DIR=/opt/proxmox/MEV_Bot/mev-platform/target/release
# Security
MEV_ADMIN_API_KEY=replace-me
# Safety: keep submission disabled for initial contained bring-up.
MEV_SUBMIT_DISABLED=1
# Logging
RUST_LOG=info,mev_admin_api=info,mev_supervisor=info
# Optional later:
# MEV_EXECUTOR_PRIVATE_KEY=0x...

View File

@@ -0,0 +1,16 @@
[Unit]
Description=MEV Admin API
Wants=network-online.target
After=network-online.target mev-infra-compose.service mev-supervisor.service
Requires=mev-infra-compose.service mev-supervisor.service
[Service]
Type=simple
WorkingDirectory=/opt/proxmox/MEV_Bot/mev-platform
EnvironmentFile=-/etc/mev-platform/backend.env
ExecStart=/opt/proxmox/MEV_Bot/mev-platform/target/release/mev-admin-api
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,17 @@
[Unit]
Description=MEV Platform Infra via Docker Compose
Wants=network-online.target
After=network-online.target docker.service
Requires=docker.service
[Service]
Type=oneshot
WorkingDirectory=/opt/proxmox/MEV_Bot/mev-platform
RemainAfterExit=yes
ExecStart=/usr/bin/docker compose up -d postgres redis nats
ExecStop=/usr/bin/docker compose stop postgres redis nats
TimeoutStartSec=0
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,16 @@
[Unit]
Description=MEV Supervisor
Wants=network-online.target
After=network-online.target mev-infra-compose.service
Requires=mev-infra-compose.service
[Service]
Type=simple
WorkingDirectory=/opt/proxmox/MEV_Bot/mev-platform
EnvironmentFile=-/etc/mev-platform/backend.env
ExecStart=/opt/proxmox/MEV_Bot/mev-platform/target/release/mev-supervisor
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target