forked from UAVLab-SLU/DRV_public
-
Notifications
You must be signed in to change notification settings - Fork 2
Docker Guide
Mohammad edited this page Oct 18, 2024
·
8 revisions
This guide covers how to build, run, and manage Docker containers for Drone World.
Before using Docker, ensure you have the following installed:
- Docker: Install Docker on your system.
- Docker Compose: Installed with Docker Desktop.
Ensure your project structure looks like this (simplified):
backend/ # Python-based backend service
frontend/ # Node.js-based frontend service
config/
settings.json # Configuration file for backend
docker-compose.yml # Docker Compose file to orchestrate the services
To build and run both services (backend and frontend):
docker compose up --build
- Frontend: http://localhost:3000
- Backend: http://localhost:5000
- Stop all services:
docker compose down
- Check status:
docker compose ps
- View logs:
docker compose logs -f
Remove unused containers, images, or volumes:
- Stopped containers:
docker container prune
- Unused images:
docker image prune -a
- Unused volumes:
docker volume prune
After making changes to the code, rebuild and restart containers:
docker compose up --build