Skip to content

johirpro/docker_nginx_php_mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Nginx MySQL PHP

Master branch is containing Nginx, MySQL, PHP, Composer, PHPMyAdmin, and Adminer.

For Additional container please browse to specific branches

How to Use
Option 1: Make Command

  1. cd <to the roor directory>
  2. Rename the 'example.env' file to '.env' file and change any required configuration like DB Name, Username, Password etc
  3. Run command: > make build
  4. Run command: > make up
  5. From browser: browse '127.0.0.1'
  6. For PHPMyAdmin: browse '127.0.0.1:8081' or For Adminer: browse '127.0.0.1:8082'
  7. For composer run command: > docker compose run composer

Option 2: Docker Command

  1. cd <to the roor directory>
  2. Rename the 'example.env' file to '.env' file and change any required configuration like DB Name, Username, Password etc
  3. Run command: > docker compose build
  4. Run command: > docker compose up
  5. From browser: browse '127.0.0.1'
  6. For PHPMyAdmin: browse '127.0.0.1:8081' or For Adminer: browse '127.0.0.1:8082'
  7. For composer run command: > docker compose run composer

Useful Nginx images

Example

FROM nginx:latest

Useful PHP images

Example

FROM php:8.2-fpm

Useful MySQL images

Example

FROM mysql:8.4

Releases

No releases published

Packages

No packages published