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.
- Clone the repository
- Requires my traefik setup
- Create .env file from .env.default example
- docker-compose build && docker-compose up
- Service available at: http://api.localhost/
- 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.
- .docker/ Docker building stuff
- api/ Whee codes goes
- var/logs/nginx/ Nginx logs
- var/postgres/ Postgress persistent data
- 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
By Daniel Morales License: Released under the MIT license