Skip to content
Branch: Master
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

start

Pull configuration

 Git clone https://github.com/flxxyz/fast-deploy-website.git & CD fast-deploy-website

Boot instance

 Docker-compose up -d

Add site

stay Wwwroot New directory Site directory Deposit Site file

Add the following code blocks to Docker-compose.yml

 Site name: 
restart: always
image: flxxyz/php:7.3-fpm
volumes:
-./wwwroot/ Site Directory: /var/www/html
networks:
- site

Newly build Site name.Conf File to Conf Catalog

 Server
{
listen 80; 
server_ Name example.com; 
root should pay attention to modify the domain name 
root /usr/share/nginx/html/ site directory; 
index index.html index.htm index.php; the new website name.Rule file to conf/rule.d directory unified management 
#include 
#include site name; Pass site name: 9000; 
fastcgi_ Index index.php; 
include fastcgi_ Params; 
fastcgi_ Param SCRIPT_ FILENAME /var/www/html/$fastcgi_ Script_ Name; 
}

error_ Log /var/log/nginx/ site name.Error.log; 
access_ Log /var/log/nginx/ site name.Access.log;}

data base

MariaDB

 Db:
container_ Name: db
restart: always
image: mariadb:10.5.1-bionic
environment:
MYSQL_ ROOT_ PASSWORD: 12345678
volumes:
- data directory: /var/lib/mysql
networks:
- site

Please view more settings. MariaDB description

Mongo

 Db:
container_ Name: db
restart: always
image: mongo:4.2.3-bionic
environment:
MONGO_ INITDB_ ROOT_ USERNAME: root
MONGO_ INITDB_ ROOT_ PASSWORD: 12345678
volumes:
- data directory: /data/db
networks:
- site

Please view more settings. Mongo description

cache

Redis

 Cache:
container_ Name: cache
restart: always
image: redis:5.0.7-alpine
networks:
- site

Persistent storage

 Volumes:
- data directory: /data
command: redis-server --appendonly yes

Please view more settings. Redis description

Memcached

 Cache:
container_ Name: cache
restart: always
image: memcached:1.6.0-alpine
networks:
- site

Set memory size

 Command: memcached -m 64

Please view more settings. Mamcached description

Version used when configuring instances

Docker

Version: 19.03.6

Docker-compose

Version: 1.24.1
Compose file format: 3.7

About

Docker rapid multi site deployment environment

Topics

Resources

You can 't perform that action at this time.