Skip to content

This repository is designed for developers who want to set up a symfony 5 (with webpack encore), php 8 environment under docker very quickly

License

Notifications You must be signed in to change notification settings

vincentBesseau/symfony-docker

Repository files navigation

image docker

Symfony on Docker

This repository is designed for developers who want to set up a symfony 5 (with webpack encore), php 8 environment under docker very quickly

Dependencies

You have to install these dependencies before to run this script

images docker and usage

This image is an example

image usage
nginx Web server
php:8.0-fpm PHP server and proxy
adminer Database management tool written in PHP
maildev/maildev Mail test web interface
mariadb Database server
thecodingmachine/php:8.0-v4-cli-node14 PHP server and node cli. This server is used for the update of dependencies.
node:14-alpine Server node for webpack

⚡️ Usage

  1. Add your environment variables to the dotenv file .env, .env.local, .env.dev, .env.dev.local

  2. Change the variable PROJECT_NAME in .env file by your project name

  3. Change the variable DB_NAME in .env file by your db name

  4. Optional, you can change all port with these variables

    Image Variable Default port
    mariadb MARIADB_PORT 3306
    adminer ADMINER_PORT 8080
    nginx NGINX_PORT 80
    maildev MAILDEV_PORT 8081
  5. Run the script sh install.sh and enjoy 🎉!

Install symfony on docker

enjoy

⭐️ Project assistance

If you want to say thank you or/and support active development of this script:

You can add a GitHub Star Star to the project.

Credits

This script was created with phpstorm with open source licence. Thank you jetBrains jetbrains

licence

MIT License

About

This repository is designed for developers who want to set up a symfony 5 (with webpack encore), php 8 environment under docker very quickly

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages