Sign inSign up

pnlinh/symfony

By pnlinh

•Updated almost 4 years ago

Simple docker image for Symfony development

Image
0

422

pnlinh/symfony repository overview

⁠Docker PHP-FPM & Nginx base on Alpine Linux

Simple docker image for Symfony development

⁠How to use
  • Build image
./build php7.2 # Build image with php 7.2
./build php7.4 # Build image with php 7.4
./build php8.0 # Build image with php 8.0
./build php8.1 # Build image with php 8.1
  • Mount your code to be served with container
docker run --name=app -v /path/to/project:/var/www/html -p 80:80 pnlinh/symfony:php8.1
  • With docker-compose
version: '3.4'

services:
    app:
        image: pnlinh/symfony:php8.1
        hostname: symfony-app
        container_name: symfony-app
        ports:
            - "80:80"
        volumes:
            - .:/var/www/html
        networks:
            - localnet
            
networks:
    localnet:
        driver: "bridge"

image

⁠References

Tag summary

Content type

Image

Digest

sha256:2481657f6…

Size

99.5 MB

Last updated

almost 4 years ago

docker pull pnlinh/symfony:3-php7.4