From 00d339e27078e7d9d9a4f52da0bf518f3e786bf9 Mon Sep 17 00:00:00 2001 From: Boris Glimcher <36732377+glimchb@users.noreply.github.com> Date: Wed, 29 May 2024 13:40:42 -0400 Subject: [PATCH] fix(sztp): add bootstrap server to compose on management server Signed-off-by: Boris Glimcher <36732377+glimchb@users.noreply.github.com> --- lab/docker-compose.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lab/docker-compose.yml b/lab/docker-compose.yml index 884edd1f..3bf18a99 100644 --- a/lab/docker-compose.yml +++ b/lab/docker-compose.yml @@ -115,6 +115,25 @@ services: - /var/run/docker.sock:/var/run/docker.sock - portainer_data:/data + bootstrap: + image: ghcr.io/opiproject/opi-sztp-server:main + environment: + SZTPD_INIT_PORT: 6080 + SZTPD_NBI_PORT: 7080 + SZTPD_SBI_PORT: 8080 + SZTPD_INIT_MODE: 1 + SZTPD_ACCEPT_CONTRACT: "Yes" + SZTPD_INIT_ADDR: 0.0.0.0 + SZTPD_OPI_MODE: "running" + SZTPD_RETRY_ATTEMPTS: 30 + ports: + - 7080:7080 + - 8080:8080 + networks: + - opi + healthcheck: + test: ["CMD-SHELL", "curl --fail -H Accept:application/yang-data+json http://127.0.0.1:$$SZTPD_NBI_PORT/.well-known/host-meta || exit 1"] + volumes: semaphore-mysql: portainer_data: