Skip to content
/ symfony-dockerized Public template

Symfony Application with RoadRunner packaged to Docker. 🔌 + 🐋 = 💕

License

Notifications You must be signed in to change notification settings

loperd/symfony-dockerized

Repository files navigation

Symfony Application in Docker | Template Repository

This repository contains the standard Symfony application, packaged in Docker containers with the ability to run using Docker-Compose.


When creating this project, I was inspired by this article https://habr.com/en/post/461687/


Stack:

Installation

Clone the repository

$ git clone https://github.com/renay/symfony-docerized

Usage

Need to build base image:

$ chmod +x ./docker/php/build.sh
$ ./docker/php/build.sh -t app/php:$VERSION

After you need to build an application image:

$ chmod +x ./docker/app/build.sh
$ ./docker/app/build.sh --parent app/php:$VERSION -t app/app:$VERSION -m [--mode] 'dev' 

And you need to lift all the containers:

$ docker-compose up -d

That's all. Now you can get to work 😊

Options

Name Accepted Values Example Description
-m or --mode dev or prod dev This argument indicates which Dockerfile to use for the build environment (Dockerfile.dev or Dockerfile.prod).
-t name:tag app/{container}:{version} Name and optionally a tag in the ‘name:tag’ format.

May accept other options from https://docs.docker.com/engine/reference/commandline/build/

Contributing

Soon...

Documentation

Coming soon...

About

Symfony Application with RoadRunner packaged to Docker. 🔌 + 🐋 = 💕

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published