test: add local 2x2 route topology
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
services:
|
||||
control:
|
||||
image: archive-control-standalone:e2e
|
||||
build:
|
||||
context: ${ARCHIVE_CONTROL_SOURCE:?set ARCHIVE_CONTROL_SOURCE to the mogic-bot checkout}
|
||||
dockerfile: Dockerfile.archive-control
|
||||
command: ["--config", "/etc/archive-control/config.json"]
|
||||
user: "1001:1001"
|
||||
volumes:
|
||||
- ./config/config.json:/etc/archive-control/config.json:ro
|
||||
- ./secrets:/run/secrets:ro
|
||||
- ./runtime/state:/var/lib/archive-control
|
||||
- ./runtime/backups:/var/backups/archive-control
|
||||
networks:
|
||||
archive-control-e2e:
|
||||
aliases: [control]
|
||||
restart: unless-stopped
|
||||
|
||||
curl:
|
||||
image: curlimages/curl:8.16.0
|
||||
network_mode: service:control
|
||||
profiles: [tools]
|
||||
depends_on: [control]
|
||||
|
||||
networks:
|
||||
archive-control-e2e:
|
||||
external: true
|
||||
name: archive-control-e2e
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"archive_control": {
|
||||
"enabled": true,
|
||||
"listen": "0.0.0.0:8765",
|
||||
"websocket_path": "/archive_control",
|
||||
"shared_token_file": "/run/secrets/archive_control_token",
|
||||
"database": "/var/lib/archive-control/control.db",
|
||||
"backup_dir": "/var/backups/archive-control",
|
||||
"registration_timeout": "5s",
|
||||
"heartbeat_interval": "2s",
|
||||
"offline_timeout": "10s",
|
||||
"command_ack_timeout": "2s",
|
||||
"command_max_attempts": 3,
|
||||
"route_policy": "eager_mesh",
|
||||
"route_setup_timeout": "5m",
|
||||
"test_http": {
|
||||
"enabled": true,
|
||||
"listen": "127.0.0.1:18081",
|
||||
"max_body_bytes": 1048576
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user