Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aminnairi/docker-nginx-php-mariadb-template
Template for running PHP and MariaDB behind NGINX using Docker, Docker Compose & GNU/Make for orchestration.
https://github.com/aminnairi/docker-nginx-php-mariadb-template
docker mariadb nginx php template
Last synced: about 1 month ago
JSON representation
Template for running PHP and MariaDB behind NGINX using Docker, Docker Compose & GNU/Make for orchestration.
- Host: GitHub
- URL: https://github.com/aminnairi/docker-nginx-php-mariadb-template
- Owner: aminnairi
- Created: 2023-02-03T11:02:12.000Z (about 2 years ago)
- Default Branch: development
- Last Pushed: 2023-03-11T19:34:25.000Z (almost 2 years ago)
- Last Synced: 2024-11-15T20:36:35.283Z (3 months ago)
- Topics: docker, mariadb, nginx, php, template
- Language: Dockerfile
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-php-nginx-mariadb-template
Template for running PHP and MariaDB behind NGINX using Docker, Docker Compose & GNU/Make for orchestration.
## Requirements
- [GNU/Bash](https://www.gnu.org/software/bash/)
- [GNU/Make]()
- [Git](https://git-scm.com/)
- [Docker](https://www.docker.com/)
- [Docker Compose](https://docs.docker.com/compose/)## Clone
```bash
git clone https://github.com/aminnairi/docker-php-nginx-mariadb-template my-project
cd my-project
```## Setup
```bash
cp .env.example .env
```> *Note: edit the `.env` file to setup your environment.*
## Startup
```bash
make start
```> *Note: you can change the port listened by the server with the `SERVER_PORT` environment variable by editing it in the `.env` file.*
## Database
```bash
make database
```> *Note: this will login to your database using a command line interface using your environment setup.*
## Shutdown
```bash
make stop
```## Restart
```bash
make restart
```> *Note: this is equivalent to running `make stop start`.*
## PHP
```bash
docker compose exec php php --version
```> *Note: replace `--version` with the PHP argument of your choice.*
## MariaDB
```bash
docker compose exec mariadb mariadb --version
```> *Note: replace `--version` with the MariaDB argument of your choice.*