Skip to content

pasdam/docker-web-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-web-stack

This repository contains a docker-compose file to start a web stack with nginx, php8, and MySQL, using only official images.

To run the stack:

docker-compose up

The website files should be in the folder www.

Usage

Create a local env file with the required secrets:

cat << EOT > mariadb.local.env
MYSQL_ROOT_PASSWORD=your_mysql_root_password
EOT

then spin up the containers:

docker-compose up

At this point you should be able to access the website at localhost: it should show a summary of the PHP config.

Legacy version

In case you need to run a stack with a legacy version of PHP 5 you can use the docker-compose-legacy.yml, which uses an old PHP image.

About

Web-stack (Nginx/PHP/MySQL) with docker-compose

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published