Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/loperd/symfony-dockerized

Symfony Application with RoadRunner packaged to Docker. :electric_plug: + :whale2: = :two_hearts:
https://github.com/loperd/symfony-dockerized

Last synced: 25 days ago
JSON representation

Symfony Application with RoadRunner packaged to Docker. :electric_plug: + :whale2: = :two_hearts:

Awesome Lists containing this project

README

        

Symfony Application in Docker | Template Repository
=====================

This repository contains the standard [Symfony](https://symfony.com) application, packaged in [Docker](https://docs.docker.com/) containers with the ability to run using [Docker-Compose](https://docs.docker.com/compose/).

***

When creating this project, I was inspired by this article

***

### Stack:
* [PostgreSQL](https://www.postgresql.org/) [v16]
* [Redis](https://redis.io/) & [Redis Commander](https://github.com/joeferner/redis-commander) [v7.2.5]
* [PHP 8.3](https://www.php.net/ChangeLog-8.php#PHP_8_3_8) with [xDebug](https://xdebug.org/announcements/2023-12-14) [v3.3.1] in DEV build
* [Symfony](https://symfony.com/doc/6.4/setup.html) [v6.4.x]
* [RoadRunner](https://github.com/spiral/roadrunner) [v2023.x]
* Makefile [RUS](https://blog.hook.sh/nix/makefile-full-doc/) leadership, [EN](https://www.gnu.org/software/make/manual/make.html) official docs

# Installation

Clone the repository

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

# Usage

Need to build base image:
```bash
$ chmod +x ./docker/php/build.sh
$ ./docker/php/build.sh -t app/php:$VERSION
```

After you need to build an application image:
```bash
$ 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:
```bash
$ docker-compose up -d
```
That's all. Now you can get to work :blush:

# 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...