Skip to content
Quickly build LNMP with some commands
Dockerfile PHP HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gitea
mysql
nginx
php_fpm
LICENSE
README.md
README_ZH_CN.md

README.md

About this Repo

You can use this repo to build your LNMP quickly by using docker.

Usage

Linux

git clone https://github.com/noxxxxxxxx/docker.git

Mac

git clone https://github.com/noxxxxxxxx/docker.git

# use macos branch, because normally the system not recommend to modify home directory, so we choose document directory
git checkout macos

Prepare

You need install these tools before you start to use.

  • Docker
  • docker compose

Network

Use bridge network to connect container

docker network create -d bridge nginx_proxy

Let'sEncrypt

Install acme.sh

phpMyAdmin

  1. unzip your phpmyadmin file in nginx/html/default/phpmyadmin
  2. setting config file
mv config.inc.sample.php config.inc.php

vim config.inc.php

# add $cfg['AllowArbitraryServer']=true;
  1. if nginx container is running, visit http://ip/phpmyadmin
  2. server address is mysql container name global_mysql,which you can modify in mysql/docker-compose.yml

WordPress

  1. DB_HOST in wp-config.php is mysql container name global_mysql

PHP

server {
    set $custom_path "/var/www/html/${folder name in nginx/html}";
    listen 80;
}

PHP Composer

Composer install

docker exec -it docker-php /bin/bash

cd target/directory

composer install

MySQL container

before you start mysql container, you need modify mysql root password

Gitea container

Like GitLab but less memory useage. If you want to use the seperate database container, you can use the official docker-compose.yml file.

Jenkins container

# run this command before you start jenkins container

chown -R 1000:1000 /home/docker/jenkins/jenkins-data

docker-compose up -d

Donation

donation

LICENSE

GNU

You can’t perform that action at this time.