Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 635 Bytes

File metadata and controls

29 lines (22 loc) · 635 Bytes

Symfony Docker

Debian Stretch based Docker image for Symfony 4.x website development containing PHP 7.2, Apache 2 and Composer.

Usage

Create a docker-compose.yml file in your Symfony project's root, using the sample below:

php:
  image: clickandmortar/symfony:4.x
  ports:
  - 12080:8080
  volumes:
  - .:/app
  environment:
    APP_ENV: dev
    APACHE_RUN_USER: docker

mysql:
  image: mysql:5.7
  environment:
    MYSQL_ROOT_PASSWORD: root
    MYSQL_DATABASE: project

Then run it : docker-compose up -d.

You can check the running containers with the docker-compose ps command.