Docker kullanarak codeigniter (php)+ mysql + phpmyadmin

FROM php:7.3-apacheRUN apt-get update && apt-get upgrade -yRUN a2enmod rewriteRUN docker-php-ext-install mysqli && docker-php-ext-install pdo_mysqlEXPOSE 80
docker-compose up 
docker-compose up --build
<IfModule mod_rewrite.c>RewriteEngine onRewriteCond $1 !^(index\.php|resources|robots\.txt)RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ index.php/$1 [L,QSA]</IfModule>
docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q)

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store