Skip to content
/ php8-stack Public template

PHP8 fpm, with NGINX and MariaDB all networked via docker-compose.

Notifications You must be signed in to change notification settings

danostech/php8-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php8 development environment w/ Docker

A Docker and PHP 8 development environment with NGINX and MariaDB.
This is a minimal development environment. Take a look at the included files to learn more if you're interested.
Quick setup instructions can be found below.

System Requirements

Setup

Clone this repository or create a new repository from this template and follow the insructions below

git clone [email protected]:danostech/docker-php8.git your_app_name

Create your public directory

cd your_app_name
mkdir -p app/public

Create index.php file

echo '<?php phpinfo(); ?>' >> app/public/index.php

Update ports, container names, and environment variables

# docker-compose.yml
# change the names of the containers from `demo_*` to your app.
# change ports in the web and/or php containers

# .env
# change the MYSQL_USER, MYSQL_PASSWORD, and MYSQL_DATABASE environment variables

Run docker-compose

docker-compose up -d

If using the default ports in docker-compose.yml go to http://localhost:8080 in your browser to view your php config.

Notes

Any environment variables created in .env will be available in the php-fpm container.

About

PHP8 fpm, with NGINX and MariaDB all networked via docker-compose.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published