Skip to content

danielm/docker-php-stack

Repository files navigation

Docker & PHP 8 boilerplate

Clone me and build cool stuff. This sets up some minimal containers to build PHP API/services.

Note: At the moment this is only designed to work during development, and shoun't be used as is for production. But it can be used as an starting point.

Install

Now you got:

  • Postgres, Php-FPM and Nginx official images (Alpine)
  • Composer also from it's official image.
  • .env File to setup Host port mapping, app environment vars, db settings
  • Persistent logs and database data for development
  • Symfony CLI
  • Extra PHP extensions enabled: pdo_pgsql opcache
  • Xdebug enabled (debug mode) w/VSCode launch config and ready to go.

Directories & Files

  • .docker/ Docker building stuff
  • api/ Whee codes goes
  • var/logs/nginx/ Nginx logs
  • var/postgres/ Postgress persistent data

ToDo

  • Production build scripts
  • Document Env vars
  • Review user permissions of persistent data / logs / composer's vendor and any file created from our container
  • Cronjobs
  • Supervisor
  • Laravel cli and its requirements

About

By Daniel Morales License: Released under the MIT license

About

Simple docker-compose Stack for Symfony (nginx, mariadb, redis and such)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published