Add contained MEV backend CT runbook
This commit is contained in:
23
config/mev-platform/mev-platform-backend-ct.env.example
Normal file
23
config/mev-platform/mev-platform-backend-ct.env.example
Normal 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...
|
||||
|
||||
16
config/systemd/mev-admin-api.service.example
Normal file
16
config/systemd/mev-admin-api.service.example
Normal 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
|
||||
17
config/systemd/mev-infra-compose.service.example
Normal file
17
config/systemd/mev-infra-compose.service.example
Normal 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
|
||||
|
||||
16
config/systemd/mev-supervisor.service.example
Normal file
16
config/systemd/mev-supervisor.service.example
Normal 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
|
||||
Reference in New Issue
Block a user