| name | setup |
| description | Setup and launch GenLayer Studio with Docker Compose |
Setup GenLayer Studio
Setup and launch the entire GenLayer Studio development environment.
Prerequisites
- Docker installed and running
Setup Steps
1. Verify Docker is Running
docker info > /dev/null 2>&1 && echo "Docker is running" || echo "Docker is not running"
2. Start All Services
docker compose up -d
This starts:
3. Initialize Database (first time only)
genlayer init
Or manually:
docker exec -it genlayer-studio-backend-1 alembic upgrade head
4. Verify Services
docker compose ps
curl -s http://localhost:4000/health | jq .
open http://localhost:8080
Common Commands
| Command | Description |
|---|
docker compose up -d | Start all services (detached) |
docker compose down | Stop all services |
docker compose down -v | Stop and clear all data |
docker compose logs -f | Tail all logs |
docker compose logs -f backend | Tail backend logs |
docker compose restart backend | Restart specific service |
Alternative: GenLayer CLI
If you have the GenLayer CLI installed:
genlayer up
genlayer init
genlayer down
Troubleshooting
Port Already in Use
lsof -i :8080
Database Connection Issues
docker compose logs db
docker compose down -v && docker compose up -d
Container Won't Start
docker compose logs backend
docker compose build --no-cache
docker compose up -d