How to start a Symfony 7 application with Docker without having PHP locally installed on your machine

This page summarizes the projects mentioned and recommended in the original post on dev.to

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • lampset

    Discontinued lampset is a command line script that allows you to setup a LAMP stack on a freshly installed Ubuntu-based virtual machine.

  • I started using virtualization tools like VirtualBox and Vagrant to create separate virtual development machines for each environment that I needed. This way, I could automatically boot up a virtual machine with PHP7.4+ for projects that needed it, or one with PHP5.6 for the older (legacy) projects. Check out my open source repository lampset on GitHub for an automation script I used to run to do this.

  • The complete source code is found here: https://github.com/gmurambadoro/symfony-lamp-stack-with-docker.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • docker

    Docker - the open-source application container engine (by microsoft)

  • Containerization technology especially Docker started gaining widespread adoption, or at least I started to become aware of it. With containerization, the promise was that it was fast and more optimal in terms of resource utilization. Also, because projects could be packaged as containers, it meant that I no longer needed to share virtualmachines between projects, and each project could declare it's dependencies in a Dockerfile checked into source code control (git), saving "future-me" the trouble of figuring out how to run a project six months later.

  • symfony-cli

    The Symfony CLI tool

  • Next up is installing the Symfony CLI binary, so that we can have all the goodies that come with it.

  • Symfony

    The Symfony PHP framework

  • services: .... app: build: context: . dockerfile: Dockerfile hostname: app restart: unless-stopped container_name: symfony-app # A custom name to be used in build scripts depends_on: - db # requires the database service to be available ports: - "9980:80" # the service will be available in my browser at http://localhost:9980 volumes: - .:/var/www/project # all files in current directory will also be available in the container, allowing you to update the source code with your IDE - ./000-default.conf:/etc/apache2/sites-available/000-default.conf:ro # Override the default apache vhost file to ensure that the symfony application is served by default # the contents of 000-default.conf is obtained from https://symfony.com/doc/current/setup/web_server_configuration.html, with modifications applied to match folder locations

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Using interfaces the wrong way

    1 project | dev.to | 24 Mar 2024
  • is there an easy way to create a safe login page against SQL injection?

    1 project | /r/PHPhelp | 9 Dec 2023
  • Clean controllers in Symfony (III): request handling

    1 project | dev.to | 11 Oct 2023
  • Symfony 7.0 Type Declarations: Requesting Feedback from the Community

    1 project | /r/PHP | 13 Sep 2023
  • Is there a complete reference for service.yaml config?

    1 project | /r/symfony | 20 Jun 2023