Image to run Symfony 2 & 3 &4 Projects from a default configuration. Based on official PHP-apache
50K+
Image to run some symfony projects with a default configuration. Base is the official PHP image with apache webserver. The image can be configured to have mail-delivery (postfix/sendmail wrapper) and cron activated as this is used in most of our projects. But there is no need to have these services enabled - it can be configured to save some server ressources.
Features:
This image is used in our hosting projects, so it is actively maintained but.
Webserver is configured to have a Symfony 2/3/4 (tags!!) file and directory structure in the default hosting. Rewriting is configured to use app.php (Symfony 2/3) or index.php in apps public folder (Symfony 4) There is a postfix mta integrated for use with php mail() - configuration see config-variables
-v [your-wwwroot]:/var/www/html/
-v [your-vhost-conf]:/etc/apache2/sites-available/000-default.conf:ro
-v [your-php.ini]:/usr/local/etc/php/php.ini:ro
-v [your-apache2.conf]:/etc/apache2/apache2.conf:ro
-v [your-log-dir]:/var/log/httpd/
-v [your-cron-dir]:/var/spool/cron
-v [your-rpaf.conf]:/etc/apache2/mods-available/rpaf.conf For documentation see https://github.com/gnif/mod_rpaf
-e START_MAILDELIVERY=TRUE enables postfix service at startup
-e START_CRON=TRUE enables cron service at startup (if you need some crons in your project) see also crontabs in config-options
-e RELAY_HOST= the relay host needs to have your ip in trusted
-e MASQ_DOMAINS=
Variable to start Symfony4 in either prod or dev mode (eg. SYMFONY_APP_ENV=dev SYMFONY_APP_DEBUG=1)
Variable to configure APP Secret (eg. SYMFONY_APP_SECRET=mysecret)
Variable to configure database connection string (alternatively .env file can be used) (eg. SYMFONY_APP_DATABASE_URL=mysql://database_name:database_secret@database_host:3306/database)
Variable to set symfony app name. REQIRED Variable to configure subdirectory for apache host
Content type
Image
Digest
Size
313.9 MB
Last updated
over 5 years ago
docker pull diekeulect/symfony-webserver