Installation
Prerequisites
- Docker and Docker Compose installed on your system
- Clone the repo https://github.com/lecca-digital/lecca-io
- navigate to the repo
cd lecca-io
Initial Setup
-
Setup environment variables
Run the
setup-env.sh
orsetup-env.ps1
scripts in the./scripts
directory to generate a.env
file for you or you can manually generate your.env
file using the.env.example
file as a reference.If on Mac or Linux Make the script executable.
chmod +x ./scripts/setup-env.sh
then run the script./script/setup-env.sh
If on Windows run the script./scripts/setup-env.ps1
This script will override any existing
.env
file you already have. So this is mainly used when you are setting up things for the first time. -
Start the application:
This command will:
- Create necessary networks and volumes
- Pull all required Docker images
- Start all services (PostgreSQL, Server, and UI)
You should now be able to navigate to your CLIENT_URL and use the platform.
Managing Your Application
Checking Services Status
Check if all services are running:
Viewing Logs
View logs for all services:
View logs for specific services:
Stopping and Starting Services
Stop all services:
Start all services:
Complete Cleanup
To remove all containers, networks, and volumes:
Using the -v flag will remove all volumes and delete your database data. Only use this if you want to completely reset your installation.
Troubleshooting
Common Issues
-
Services won't start
Common causes:
- Port conflicts (5173, 9094, or 5432 already in use)
- Environment variables not set correctly
- Insufficient permissions
-
Database connection issues
Common causes:
- Incorrect database credentials in .env
- Database initialization failed
- Volume permissions issues
-
Server can't connect to database
Common causes:
DATABASE_URL
not properly configured- Database not ready when server starts
- Network issues between containers