Rename project from any-llm to laravel-llm

- Remove old any-llm related files (Dockerfile, config.yml, web/, setup-laravel.sh)
- Update README.md with new Laravel LLM Gateway documentation
- Keep docker-compose.yml with laravel-llm container names
- Clean project structure for Laravel-only implementation
This commit is contained in:
wtrinkl
2025-11-18 22:05:05 +01:00
parent b1363aeab9
commit bef36c7ca2
33 changed files with 1341 additions and 2930 deletions

View File

@@ -1,57 +1,29 @@
services:
gateway:
# if pulling from ghcr.io, use the following instead, and comment out the build section:
image: ghcr.io/mozilla-ai/any-llm/gateway:latest
# build:
# context: ..
# dockerfile: docker/Dockerfile
# args:
# VERSION: ${VERSION:-0.0.0+local}
# If you want to use a different port, change it here and in the config.yml file.
ports:
- "8000:8000"
volumes:
- ./config.yml:/app/config.yml
command: ["any-llm-gateway", "serve", "--config", "/app/config.yml"]
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
networks:
- any-llm-network
postgres:
image: postgres:16-alpine
# MariaDB Database
mariadb:
container_name: laravel-llm-mariadb
image: mariadb:11.4
environment:
- POSTGRES_USER=gateway
- POSTGRES_PASSWORD=gateway
- POSTGRES_DB=gateway
- MYSQL_ROOT_PASSWORD=rootpass
- MYSQL_DATABASE=gateway
- MYSQL_USER=gateway
- MYSQL_PASSWORD=gateway
volumes:
- postgres_data:/var/lib/postgresql/data
- mariadb_data:/var/lib/mysql
ports:
- "3306:3306"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U gateway"]
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
networks:
- any-llm-network
web:
image: nginx:alpine
ports:
- "8080:80"
volumes:
- ./web:/usr/share/nginx/html:ro
- ./web/default.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- gateway
restart: unless-stopped
networks:
- any-llm-network
- laravel-llm-network
# Laravel Admin Panel
laravel:
container_name: laravel-llm-app
build:
context: ./laravel
dockerfile: Dockerfile
@@ -63,36 +35,41 @@ services:
- APP_ENV=local
- APP_DEBUG=true
- APP_KEY=base64:dXFQ1q9f0T9fNZGde+9h/JOsaBPPmGv5qzA87b9FQnQ=
- DB_CONNECTION=pgsql
- DB_HOST=postgres
- DB_PORT=5432
- DB_CONNECTION=mysql
- DB_HOST=mariadb
- DB_PORT=3306
- DB_DATABASE=gateway
- DB_USERNAME=gateway
- DB_PASSWORD=gateway
depends_on:
postgres:
mariadb:
condition: service_healthy
restart: unless-stopped
networks:
- any-llm-network
- laravel-llm-network
# Adminer - Database Management UI
adminer:
image: adminer:latest
# phpMyAdmin - Database Management UI
phpmyadmin:
container_name: laravel-llm-phpmyadmin
image: phpmyadmin:latest
ports:
- "8081:8080"
- "8081:80"
environment:
- ADMINER_DEFAULT_SERVER=postgres
- ADMINER_DESIGN=dracula
- PMA_HOST=mariadb
- PMA_PORT=3306
- PMA_USER=root
- PMA_PASSWORD=rootpass
- UPLOAD_LIMIT=300M
depends_on:
- postgres
mariadb:
condition: service_healthy
restart: unless-stopped
networks:
- any-llm-network
- laravel-llm-network
volumes:
postgres_data:
mariadb_data:
networks:
any-llm-network:
laravel-llm-network:
driver: bridge