Skip to content

Instantly share code, notes, and snippets.

View R3quest's full-sized avatar

Luka Ljubičić R3quest

  • Q Agency
  • Croatia
View GitHub Profile
# overrides for php.ini file
max_input_vars=2000
@R3quest
R3quest / production.Dockerfile
Last active January 10, 2023 12:26
Laravel Vapor Dockerfile - FFMPEG library, mysql client, GMP extension and custom php.ini file
FROM laravelphp/vapor:php81
# installing ffmpeg and mysql client,
# gmp library is needed for gmp extension to work
RUN apk --update add ffmpeg mysql-client gmp-dev
# installing php extensions -> gmp extension
RUN docker-php-ext-install gmp
# copy local php.ini file to /usr/local/etc/php/conf.d/overrides.ini
@R3quest
R3quest / production.Dockerfile
Last active January 10, 2023 12:26
Laravel Vapor Docker runtime
FROM laravelphp/vapor:php81
# Place application in Lamda application directory...
COPY . /var/task
@R3quest
R3quest / vapor.yml
Last active January 10, 2023 12:50
vapor.yml configuration file - Docker runtime
id: 38773
name: vapor-app
environments:
production:
memory: 1024
cli-memory: 512
runtime: docker # uses /production.Dockerfile
database: vapor-app-database # database name - created in Vapor UI
build: # runs before deployment
- 'COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-dev'
@R3quest
R3quest / vapor.yml
Last active January 10, 2023 12:05
vapor.yml configuration file - database
id: 38773
name: vapor-app
environments:
production:
memory: 1024
cli-memory: 512
runtime: php-8.1:al2
database: vapor-app-database # database name - created in Vapor UI
build: #runs before deployment
- 'COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-dev'
@R3quest
R3quest / vapor.yml
Created January 10, 2023 11:57
vapor.yml configuration file
id: 38773
name: vapor-app
environments:
production:
memory: 1024
cli-memory: 512
runtime: php-8.1:al2
build: #runs before deployment
- 'COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-dev'
- 'php artisan event:cache'