Skip to content

Commit

Permalink
fix(sztp): add bootstrap server to compose on management server
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb authored May 29, 2024
1 parent 54b446d commit 00d339e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lab/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 00d339e

Please sign in to comment.