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 [v16]
- Redis & Redis Commander [v7.2.5]
- PHP 8.3 with xDebug [v3.3.1] in DEV build
- Symfony [v6.4.x]
- RoadRunner [v2023.x]
- Makefile RUS leadership, EN official docs
Clone the repository
$ git clone https://github.com/renay/symfony-docerized
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 😊
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...