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/
- PostgreSQL [v11.4]
- Redis & Redis Commander [v5.0.5]
- PHP 7.4 with xDebug [v2.9.0] in DEV build
- Symfony [v5.0.*]
- RoadRunner [v1.5.2]
- Makefile RUS manual, EN official docs
Clone the repository
git clone https://github.com/renay/symfony-docerized
Need to build base image:
bash ./docker/php/build.sh -t app/php:0.1.0 # 0.1.0 as default version
After you need to build an application image:
bash ./docker/app/build.sh -t app/app:0.1.0 -m [--mode] 'dev' # 0.1.0 as default version
And you need to lift all the containers:
docker-compose up -d
That's all. Now you can get to work ๐
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/
Soon...
Coming soon...