/symfony-docker-compose

Docker Composer for Symfony

Primary LanguageDockerfile

Docker Symfony

Docker Compose for Symfony

Installation

1 - Create the symfony project:

composer create-project symfony/website-skeleton app

2 - Change your .env mysql credentials on app/.env

DATABASE_URL=mysql://user:password@127.0.0.1:3306/app

2 - Start the docker compose:

docker-compose up -d

Note: First time will take a few minutes to download all the containers.

Run the application

The application is listening the port :8888. You can see the application running in http://localhost:8888

Commands

Check all the containers:

docker-compose ps

Entering the container:

docker exec -it docker-symfony_php_1 /bin/sh