All Projects → deinebaustoffe → docker-php-base

deinebaustoffe / docker-php-base

Licence: MIT license
Docker Base Image with PHP 7.4

Programming Languages

Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to docker-php-base

docker-opengl
Multi-Arch Docker - Mesa 3D OpenGL Software Rendering (Gallium) - LLVMpipe, and OpenSWR Drivers
Stars: ✭ 68 (+134.48%)
Mutual labels:  alpine
docker-njs
Pure njs(Nginx JavaScript) Docker image, more convenient for development and debugging.
Stars: ✭ 16 (-44.83%)
Mutual labels:  alpine
mysqlclient
the mysqlclient Docker image (based on python:3.8.5-alpine3.12) https://github.com/PyMySQL/mysqlclient-python
Stars: ✭ 20 (-31.03%)
Mutual labels:  alpine
docker-terraform-docs
Alpine-based multistage-build version of terraform-docs and terraform-docs-replace in multiple versions to be used for CI and other reproducible automations
Stars: ✭ 59 (+103.45%)
Mutual labels:  alpine
pyVirtualize
A python interface to access and manage VMware vSphere and ~Horizon View~
Stars: ✭ 13 (-55.17%)
Mutual labels:  horizon
docker-php7
A docker image with php 7 and extensions (apc, apcu, intl, mcrypt,...)
Stars: ✭ 16 (-44.83%)
Mutual labels:  alpine
mailbox
📨 簡易電子報發送系統,使用 #Golang 實作,send campaign mail with open, click tracker.
Stars: ✭ 26 (-10.34%)
Mutual labels:  alpine
docker-mongodb-backup
Docker MongoDB Backup Container based on Alpine w/S6 init, Zabbix Monitoring
Stars: ✭ 27 (-6.9%)
Mutual labels:  alpine
docker-nfs4
Simple containerized NFS v4 server running on Alpine Linux
Stars: ✭ 19 (-34.48%)
Mutual labels:  alpine
cicd-images
Images used internally for running continuous integration/delivery tasks
Stars: ✭ 19 (-34.48%)
Mutual labels:  alpine
docker-alpine-python2
The smallest Docker image with Python 2.7 (~50MB)
Stars: ✭ 36 (+24.14%)
Mutual labels:  alpine
docker-logstash-alpine
Alpine Linux based Logstash Docker Image
Stars: ✭ 50 (+72.41%)
Mutual labels:  alpine
static-php-cli
Build single static PHP binary in linux, build with PHP project together, with Swoole and other popular extensions included.
Stars: ✭ 129 (+344.83%)
Mutual labels:  alpine
nghttp2-alpine
Minimal nghttp2 docker image with ALPN support
Stars: ✭ 14 (-51.72%)
Mutual labels:  alpine
docker-alpine-sshd
A lightweight OpenSSH Docker Image built atop Alpine Linux.
Stars: ✭ 108 (+272.41%)
Mutual labels:  alpine
adoteumdev
The AdoteUmDev project
Stars: ✭ 101 (+248.28%)
Mutual labels:  alpine
mtproxy
Alpine-based Docker Image for Telegram MTProto Proxy
Stars: ✭ 89 (+206.9%)
Mutual labels:  alpine
pi-factory
Bootstrap a bitcoin lightning box for Raspberry Pi 3 based on Alpine Linux
Stars: ✭ 17 (-41.38%)
Mutual labels:  alpine
youtube-dl-docker
Download with youtube-dl using command line arguments or a configuration file + Automated updates
Stars: ✭ 44 (+51.72%)
Mutual labels:  alpine
php-mssql-alpine
Docker image with Microsoft SQL Server Driver into php image alpine
Stars: ✭ 28 (-3.45%)
Mutual labels:  alpine

php-base

Docker Base Image with PHP 7.4

Laravel Application - Quick Run

Using the Laravel installer you can get up and running with a Laravel application inside Docker in minutes.

  • Create a new Laravel application $ laravel new testapp
  • Change to the applications directory $ cd testapp
  • Start the container and attach the application. $ docker run -d -p 4488:80 --name=testapp -v $PWD:/var/www registry.db-ops.de/dockerfiles/php-base:latest
  • Visit the Docker container URL like http://0.0.0.0:4488. Profit!

Args

Here are some args

  • NGINX_HTTP_PORT - HTTP port. Default: 80.
  • NGINX_HTTPS_PORT - HTTPS port. Default: 443.
  • PHP_VERSION - The PHP version to install. Supports: 7.3, 7.4. Default: 7.4.
  • ALPINE_VERSION - The Alpine version. Supports: 3.9. Default: 3.9.

Environment Variables

Here are some configurable environment values.

  • WEBROOT – Path to the web root. Default: /var/www
  • WEBROOT_PUBLIC – Path to the web root. Default: /var/www/public
  • COMPOSER_DIRECTORY - Path to the composer.json containing directory. Default: /var/www.
  • COMPOSER_UPDATE_ON_BUILD - Should composer update run on build. Default: 0.
  • LARAVEL_APP - Is this a Laravel application. Default 0.
  • RUN_LARAVEL_SCHEDULER - Should the Laravel scheduler command run. Only works if LARAVEL_APP is 1. Default: 0.
  • RUN_LARAVEL_MIGRATIONS_ON_BUILD - Should the migrate command run during build. Only works if LARAVEL_APP is 1. Default: 0.
  • PRODUCTION – Is this a production environment. Default: 0
  • PHP_MEMORY_LIMIT - PHP memory limit. Default: 128M
  • PHP_POST_MAX_SIZE - Maximum POST size. Default: 50M
  • PHP_UPLOAD_MAX_FILESIZE - Maximum file upload file. Default: 10M.
  • AUTH_JSON - Determins if and auth.json is present. Default: 0.
  • AUTH_JSON_PATH - If AUTH_JSON is set to 1 the image will copy the file to the composer-root.

Running a Laravel Application in a container

Use the following code as Dockerfile template:

FROM registry.db-ops.de/dockerfiles/php-base:latest

LABEL maintainer="Florian Wartner <[email protected]>"

ENV LARAVEL_APP=1
ENV PRODUCTION=1
ENV RUN_LARAVEL_SCHEDULER=1
ENV AUTH_JSON=0
ENV AUTH_JSON_PATH=auth.json
ENV RUN_LARAVEL_MIGRATIONS_ON_BUILD=0

COPY . /var/www/

ADD horizon.conf /etc/supervisor/horizon.conf

WORKDIR /var/www
RUN rm -rf vendor/ \
    && rm -rf node_modules/ \
    && cp .env.docker .env \
    && composer install --no-dev \
    && chmod -Rf 777 /var/www/storage/
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].