https://github.com/danielm/docker-php-stack
Simple docker-compose Stack for Symfony (nginx, mariadb, redis and such)
https://github.com/danielm/docker-php-stack
Last synced: 3 months ago
JSON representation
Simple docker-compose Stack for Symfony (nginx, mariadb, redis and such)
- Host: GitHub
- URL: https://github.com/danielm/docker-php-stack
- Owner: danielm
- Created: 2021-11-13T21:02:55.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-08T02:28:35.000Z (over 3 years ago)
- Last Synced: 2025-03-22T22:42:34.895Z (over 1 year ago)
- Language: Dockerfile
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# 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
- Clone the repository
- Requires [my traefik setup](https://github.com/danielm/traefik-reverse-proxy/)
- Create *.env* file from .env.default example
- docker-compose build && docker-compose up
- Service available at: http://api.localhost/
## 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](https://daniel.uy)
License: Released under the [MIT license](https://github.com/danielm/uploader/blob/master/LICENSE.txt)