https://github.com/pasdam/docker-web-stack
Web-stack (Nginx/PHP/MySQL) with docker-compose
https://github.com/pasdam/docker-web-stack
Last synced: 4 months ago
JSON representation
Web-stack (Nginx/PHP/MySQL) with docker-compose
- Host: GitHub
- URL: https://github.com/pasdam/docker-web-stack
- Owner: pasdam
- Created: 2019-04-24T13:25:06.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-17T04:32:33.000Z (almost 3 years ago)
- Last Synced: 2025-03-27T00:15:34.512Z (about 1 year ago)
- Language: Dockerfile
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-web-stack
This repository contains a [docker-compose](docker-compose.yaml) file to start a
web stack with [nginx](https://www.nginx.com/), [php8](https://www.php.net/),
and [MySQL](https://www.mysql.com/), using **only official images**.
To run the stack:
```sh
docker-compose up
```
The website files should be in the folder `www`.
## Usage
Create a local `env` file with the required secrets:
```sh
cat << EOT > mariadb.local.env
MYSQL_ROOT_PASSWORD=your_mysql_root_password
EOT
```
then spin up the containers:
```sh
docker-compose up
```
At this point you should be able to access the website at
[localhost](http://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.