Moved to a repo at https://github.com/Geczy/coolify-migration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM serversideup/php:8.3-fpm-nginx-alpine AS base | |
| ENV AUTORUN_ENABLED=1 | |
| ENV PHP_OPCACHE_ENABLE=1 | |
| ENV SSL_MODE="off" | |
| USER root | |
| RUN apk add --update busybox-suid && \ | |
| install-php-extensions bcmath gd exif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [phases.setup] | |
| nixPkgs = ["...", "python311Packages.supervisor"] | |
| [phases.build] | |
| cmds = [ | |
| "mkdir -p /etc/supervisor/conf.d/", | |
| "cp /assets/laravel-worker.conf /etc/supervisor/conf.d/laravel-worker.conf", | |
| "cp /assets/supervisord.conf /etc/supervisord.conf", | |
| "chmod +x /assets/start.sh", | |
| "npm run build", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')" | |
| # syntax = docker/dockerfile:1.4.0 | |
| FROM node:20 | |
| WORKDIR /root | |
| RUN npm install sqlite3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Providers\Macros; | |
| class ApaTitle | |
| { | |
| public function __invoke() | |
| { | |
| return function ($string) { | |
| // Define minor words to be lowercase |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Credit Sandro Gehri | |
| * https://twitter.com/gehrisandro | |
| */ | |
| use Filament\Forms\Components\Select; | |
| use Filament\Forms\Components\Actions\Action; | |
| Select::make('foo') | |
| ->options(['read','write','execute']) |
Content :
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const v4 = () => { | |
| return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
| const r = Math.trunc(Math.random() * 16); | |
| const v = c == 'x' ? r : (r & 0x3 | 0x8); | |
| return v.toString(16); | |
| }); | |
| } | |
| const v7 = () => { | |
| return 'tttttttt-tttt-7xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Factories\HasFactory; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Support\Facades\DB; | |
| class Blog extends Model | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Livewire; | |
| use App\Models\Post; | |
| use Livewire\Component; | |
| class PostList extends Component | |
| { | |
| public $offset = 0; |