Code Monkey home page Code Monkey logo

symfony-docker's Introduction

Docker Symfony setup

Docker setup for symfony or other php projects. It currently supports MacOS (Mutagen + mutagen-compose) and Unix (native docker volumes). This repository currently contains support for PHP 7.2 up to PHP 8.2.1. Just checkout the needed tag and you're good to go.

Current Specs

  • PHP: 8.2.12
  • PHP modules: Xdebug 3, redis, amqp, soap, pcov, opcache, apcu
  • Composer 2.4.4
  • MySQL: 8.0.33
  • NPM: 8.19.3, NVM: 0.39.1, NODE: 16.19.0 LTS, YARN: 1.22.19, BUN: 1.0.13
  • Symfony-cli
  • Deployer
  • ZSH
  • Mutagen + mutagen-compose (Required on MacOS) / native docker volumes (OS will be detected)
  • Docker container for: mysql, redis, rabbitmq and mailcatcher

Setup

Checkout your project into the /www directory and set the APACHE_DOCUMENT_ROOT env in the docker-compose file, to match your framework / setup. Type ./docker.sh to see a help message for additional commands.

Start setup

./docker.sh start

Stop Setup

./docker.sh stop

Connect into container

./docker.sh ssh

Build project

./docker.sh setup

Stop and remove docker container with their volumes

./docker.sh rm

Symfony full install

It runs symfony new --webapp ./ inside the docker container working dir. After that you'll have a running symfony default application. Change the DB credentials in the www/.envand you are good to go

./docker.sh symfony:full

Symfony microservice install

It runs symfony new ./ inside the docker container working dir. After that you'll have a running symfony microservice application. Change the DB credentials in the www/.envand you are good to go

./docker.sh symfony:micro

Enables xdebug

./docker.sh xdebug:on

Disables xdebug

./docker.sh xdebug:off

Aliases

if you connect into the container, it will have the following aliases:

Enable xdebug

xdebug-enable

Disable xdebug

xdebug-disable

symfony-docker's People

Contributors

klizzy avatar

Stargazers

 avatar

Watchers

 avatar  avatar

symfony-docker's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.