Skip to content

Repository files navigation

docker-php-nginx-mariadb-template

Template for running PHP and MariaDB behind NGINX using Docker, Docker Compose & GNU/Make for orchestration.

Requirements

Clone

git clone https://github.com/aminnairi/docker-php-nginx-mariadb-template my-project
cd my-project

Setup

cp .env.example .env

Note: edit the .env file to setup your environment.

Startup

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

make database

Note: this will login to your database using a command line interface using your environment setup.

Shutdown

make stop

Restart

make restart

Note: this is equivalent to running make stop start.

PHP

docker compose exec php php --version

Note: replace --version with the PHP argument of your choice.

MariaDB

docker compose exec mariadb mariadb --version

Note: replace --version with the MariaDB argument of your choice.

INIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages