- Docker with Docker Compose v2
- Git
git clone https://github.com/bruzp/support-system.git support-system
cd support-systemIf you're on Linux or WSL and get an exec format error when building, run:
echo "{}" > ~/.docker/config.jsoncp support-api/.env.example support-api/.envOpen support-api/.env and update the database values to match Docker: (Optional)
DB_CONNECTION=pgsql
DB_HOST=postgres
DB_PORT=5432
DB_DATABASE=supportdb
DB_USERNAME=supportuser
DB_PASSWORD=supportpassword
OLLAMA_HOST=http://ollama:11434touch support-next/.envMake sure this is set:
NEXT_PUBLIC_API_URL=http://localhost:8000/apidocker compose build --no-cachedocker compose run --rm app composer installThis step ensures
yarn.lockis compatible with the Linux Alpine container. Only needed on first setup or after adding new packages.
docker compose run --rm frontend yarn installdocker compose up -ddocker compose exec app php artisan key:generatedocker compose exec app php artisan migrate --seedFrontend:
http://localhost:3000/auth/login
API:
http://localhost:8000/api
The seeder creates the following users:
| Role | Password | |
|---|---|---|
| Admin | admin@example.com |
password |
| Regular User | user@example.com |
password |