Docker Workflow Symfony
Symfony Flex application skeleton with docker-compose support, bootstrapped by Environment Configurator
Install / Use
npx skills add covex-nn/docker-workflow-symfonyInstalls into whichever agent you are using.
README
Symfony Flex application skeleton with docker support
This repository is a skeleton of Symfony Flex application for development and
deployment with docker-compose. It contains a set of GitLab CI/CD Pipeline
procedures for almost zero deployment downtime.
Only trusted base docker images are used at all stages from development to production:
nginx:1.14debian:stretch-slimwith Sury Debian DPA for PHPmysql:5.7phpmyadmin/phpmyadmin
This repository is a symfony/skeleton composer project, bootstrapped by
Environment configurator with the following commands:
composer global require covex-nn/environment
composer global require covex-nn/environment-repository
composer create-project symfony/skeleton .
composer env:apply docker-ci
Usage
Use composer to create a new Symfony Flex application:
composer create-project covex-nn/docker-symfony .
Before launching docker-compose, add two records to C:\WINDOWS\System32\Drivers\etc\hosts
or /etc/hosts file:
docker.local 127.0.0.1
mysql 127.0.0.1
If you use Docker Toolbox, execute docker-machine env, get IP-address from DOCKER_HOST
variable and use that IP instead of 127.0.0.1
To initialize and run a new application with PHP-builtin web-server use following
commands (only MySQL and phpMyAdmin will be started with docker-compose):
docker-compose up -d
phing
php -S localhost:80 -t public
But if you want to use Nginx as Web server, or if you do not have PHP 7.2
installed on your host, execute the following instead:
cp docker-compose.override.yml.dist docker-compose.override.yml
docker-compose up -d
docker-compose exec php phing
Endpoint container with php-fpm is built with multi-stage Dockerfile.
PHP extensions intl, pdo_mysql, zip, opcache and xdebug (for dev-environment)
are installed by default, but a list of PHP extensions can be easily extended
with simple apt-get.
-
cronis installed for prod-environment; add your crontab jobs todocker/app.crontab. -
cacheandlogdirectories are moved to a non-shared volume for dev-environmen withvolumessection of docker-compose.override.yml
Related Skills
node-connect
385.5kDiagnose OpenClaw Android, iOS, or macOS node pairing, QR/setup code, route, auth, and connection failures.
prose
385.5kOpenProse VM skill pack. Activate on any `prose` command, .prose files, or OpenProse mentions; orchestrates multi-agent workflows.
blender-python-addon
40.5kBlender Python add-on rules for operators, panels, properties, registration, testing, and API-safe scripting
flutter-development-guidelines-cursorrules-prompt-file
40.5kCursor rules for Flutter development with MVVM architecture, Riverpod state management, Material widgets, and Dart style guidelines.
