Public | Automated Build

Last pushed: a year ago
Short Description
Painless and Automated Laravel Docker instances Hosting and Deployment.
Full Description


Laas ( Laravel As A Service )

Painless and Automated Laravel Docker instances Hosting and Deployment.
Laas is developed under inspiration of Laravel Forge Project, which allows you deploy and host your laravel projects wihout any configuraion. Laas is Free, Self Hosted and More powerful.

Features

  • Production ready And fully dockerized environment for hosting Laravel applications.
  • All Data is independent of container, just delete and create an new one any time you want.
  • Powered by Nginx, PHP7-FPM on latest Ubuntu.
  • Webhooks are ready ! Just push and commit your changes and your site is up!
  • PHP Mongo extension.
  • SSH-Keys are auto-generated for git access.
  • Very Light, no database running inside container.
  • Gulp installed, just exec cmd gulp from container
  • PHP v8Js Extention

Webhook

Simply set WEBHOOK_SECRET environemnt and use injected url http://project_url/webhook.php?secret=123 to use webhook.
if you want to add custom commands, create a .webhookrc script in root of your laravel project.

Running commands

You can use exec + cmd command to run commands inside laravel project like :
php exec -it <container_name> cmd php artisan help

Quick Start

Simple Docker-Compose

version: '2'
services:
  laravel:
    image: pooya/laas
    volumes:
      - ./data/www:/var/www
    environment:
      -  VIRTUAL_HOST=my.subdomain.tld,butterfly.my.subdomain.dld
      -  GIT_REPO=https://github.com/some/repo.git
      -  PASSWORD=www-data_password
      -  WEBHOOK_SECRET=123
    restart: always
    network_mode: "bridge"

Alternative Docker-Copose:

You can also create a docker compose inside your laravel repository and mount project to /var/www/laravel

docker-compose.yaml:

version: '2'
services:
  www:
    image: pooya/laas
    volumes:
      - .:/var/www/laravel
      - ./.laas:/var/www
    env_file: .env
    network_mode: "bridge"
    restart: always

.env:

VIRTUAL_HOST=my-website.com
WEBHOOK_SECRET=123

.gitingnore:

/.laas*
public/webhook.php
Docker Pull Command
Owner
pooya
Source Repository

Comments (0)