/symfony-docker

Symfony5 Docker Development Stack

Primary LanguageDockerfile

Symfony5 Docker Development Stack

This is a lightweight stack based on Alpine Linux for running Symfony 5 into Docker containers using docker-compose.

Build Status

Prerequisites

Container

Installing

run docker and connect to container:

 docker-compose up --build
 docker-compose exec php sh

install latest version of Symfony via composer:

# traditional web application
$ composer create-project symfony/website-skeleton .

or

# microservice, console application or API
$ composer create-project symfony/skeleton .

modify your DATABASE_URL config in .env

DATABASE_URL=mysql://root:root@mysql:3306/symfony?serverVersion=5.7

call localhost in your browser: