This document describes how to run VyManager using Docker or Podman, which includes both the FastAPI backend and the Next.js frontend.
- Docker or Podman installed
- Docker Compose or Podman Compose installed (recommended)
- Properly configured
.envfiles for both backend and frontend (see below)
Before running the application, create the following environment files:
VYOS_HOST=your-vyos-router-ip
VYOS_API_KEY=your-api-key
VYOS_HTTPS=true
TRUST_SELF_SIGNED=true # Set to true if your VyOS router uses a self-signed certificate
ENVIRONMENT=production # or developmentNEXT_PUBLIC_API_URL=http://localhost:3001This is the fastest way to get started using Docker Compose.
cd container
# Start the application
docker-compose -f prebuilt_images_compose.yaml up -d
# View logs
docker-compose -f prebuilt_images_compose.yaml logs -f
# Stop the application
docker-compose -f prebuilt_images_compose.yaml downIf you'd like to build the images yourself (e.g. for development or customization), use the following steps.
cd container
# Build and start
docker-compose -f env_file_compose.yaml up -d
# Logs
docker-compose -f env_file_compose.yaml logs -f
# Stop
docker-compose -f env_file_compose.yaml downcd container
# Build and start
podman compose -f env_file_compose.yaml up -d
# Logs
podman compose -f env_file_compose.yaml logs -f
# Stop
podman compose -f env_file_compose.yaml downIf you want to run the containers manually using Docker or Podman, follow this method:
cd container
# Build images manually
docker build -f ./backend/Containerfile -t vymanager-backend .
docker build -f ./frontend/Containerfile -t vymanager-frontend .
# Run containers manually
docker run -d -p 3001:3001 --env-file ../backend/.env --name vymanager-backend vymanager-backend
docker run -d -p 3000:3000 --env-file ../frontend/.env --name vymanager-frontend vymanager-frontend
# Logs
docker logs -f vymanager-backend
docker logs -f vymanager-frontend
# Stop
docker stop vymanager-backend
docker stop vymanager-frontend🛠️ Note: If you encounter
sd-bus call: Interactive authentication required, try running withsudo.
- Frontend (Next.js): http://localhost:3000
- Backend API (FastAPI): http://localhost:3001
For production use, consider:
- Reverse proxy with HTTPS (e.g. Nginx or Traefik)
- Secure CORS and authentication
- Orchestration with Docker Swarm or Kubernetes
- Centralized logging and monitoring
- Persistent volume setup for long-term storage
-
Check logs:
docker-compose logsordocker logs <container-name>
-
Confirm
.envfiles are correctly set -
Verify VyOS API access from the container
-
Test your VyOS connection outside Docker first