A single-container alternative to YANG Suite's multi-container setup for experimentation and development.
Important
All commands must be run from the one-container-alternative directory, not the repository root.
# Navigate to the one-container-alternative directory
cd one-container-alternative
# Build and run YANG Suite
make build
make runThen visit https://localhost:8480 and login with:
- Username:
developer - Password:
developer
This alternative installation uses only a single container instead of three, making it simpler for experimentation.
- Fewer points of failure - one container for all requirements.
- No user input required - configuration settings are preset.
- No Docker/Podman Compose needed - only Docker/Podman commands.
- HTTPs only on port
8480
- No backup cron job.
- Container runs as root (
/usr/local/bin/create_yangtreehad permissions issues). - Intended for experimentation, not production.
DockerorPodman(container runtime).Make(build automation tool).- 4GB+ available RAM (recommended).
This command creates and starts the container, exposing YANG Suite on port 8480 (HTTPS only) with a persistent volume for your data.
You can control the container lifecycle with these commands:
make stop # Stop the running container
make start # Start the stopped container
make rm # Remove the container (data persists in volume)By default, the container uses self-signed certificates. To use your own SSL certificates:
- Place exactly one
.crtand one.keyfile in thecertificatedirectory inside theone-container-alternativedirectory. - Run
make run- your certificates will be automatically detected and used.
Note
The container automatically detects custom certificates. If none are found, it falls back to self-signed certificates.
You're probably in the wrong directory. Make sure you're in one-container-alternative:
# Check your current directory
pwd
# If you're in the repository root, navigate to the subdirectory:
cd one-container-alternative
# Verify you can see the Makefile:
ls Makefileyangsuite/ # Repository root
├── README.md # Main YANG Suite README
├── docker/ # Main Docker setup
└── one-container-alternative/ # ← You should be here
├── Dockerfile
├── Makefile # ← This should exist
├── README.md # ← This file
└── build-assets/
Watch real-time application logs:
make follow # View container logs (Ctrl+C to stop)Access internal YANG Suite logs:
make debug # Monitor internal application logsGet shell access for debugging:
make cli # Open bash shell inside containerYour YANG Suite data is stored in the Docker volume yangsuite-one-container-data. This means:
- Settings and configurations persist between container restarts.
- Data survives container removal (unless you run
make rm-volume). - You can backup/restore data by managing this volume.
For development and testing, use this command to rebuild and restart everything:
make dev # Removes container+volume, rebuilds, runs, and follows logs[!WARNING] >
make devremoves all data! Only use for development.