https://github.com/delirehberi/php7-symfony
PHP7 build for symfony development
https://github.com/delirehberi/php7-symfony
docker php-docker php7 php71 php72 php73 php74 symfony-docker
Last synced: 12 months ago
JSON representation
PHP7 build for symfony development
- Host: GitHub
- URL: https://github.com/delirehberi/php7-symfony
- Owner: delirehberi
- License: mit
- Created: 2016-03-23T20:31:10.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-04-28T07:59:10.000Z (almost 6 years ago)
- Last Synced: 2025-03-23T22:12:43.447Z (12 months ago)
- Topics: docker, php-docker, php7, php71, php72, php73, php74, symfony-docker
- Language: Dockerfile
- Size: 5.86 KB
- Stars: 5
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Preconfigured development environment for Symfony
The Symfony Docker Image is based official PHP-FPM docker file and it including several required and a few optional extensions for Symfony. Also, this docker image contains `composer` tool.
You can create `www.conf` file for customized pool configuration and then you can mount it to the image with this path: `/usr/local/etc/php-fpm.d/www.conf`.
# Available Tags
- delirehberi/php7-symfony:7.1
- delirehberi/php7-symfony:7.2
- delirehberi/php7-symfony:7.3
- delirehberi/php7-symfony:7.4
# Included Extensions and Tools:
- composer
- git
- pdo
- pdo_mysql
- pdo_pgsql
- mbstring
- intl
- zip
- iconv
- mcrypt
- gd
## Example docker-compose configuration
```yaml
version: '3'
services:
php:
image: delirehberi/php7-symfony:7.4
ports:
- 9000:9000
volumes:
- ./:/app/
- ./docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf
environment:
APP_ENV: dev
APP_SECRET: "CHANGE_ME"
DATABASE_URL: "pgsql://dbuser:dbpassword@postgresql:5432/dbname"
REDIS_HOST: redis
nginx:
image: nginx:1.17.8
ports:
- 80:80
volumes:
- ./:/app/
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
postgresql:
image: postgres:11
ports:
- 5432:5432
depends_on:
- php
volumes:
- ./:/app/
environment:
POSTGRES_DB: dbname
POSTGRES_USER: dbuser
POSTGRES_PASSWORD: dbpassword
node:
image: node:13
volumes:
- ./:/app/
working_dir: /app
redis:
image: redis
depends_on:
- php
```