first commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
/data
|
||||
/log
|
||||
@@ -0,0 +1,31 @@
|
||||
# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; version 2 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
#
|
||||
# The MySQL Server configuration file.
|
||||
#
|
||||
# For explanations see
|
||||
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
|
||||
|
||||
[mysqld]
|
||||
pid-file = /var/run/mysqld/mysqld.pid
|
||||
socket = /var/run/mysqld/mysqld.sock
|
||||
datadir = /var/lib/mysql
|
||||
log-error = /var/log/mysql/error.log
|
||||
# By default we only accept connections from localhost
|
||||
#bind-address = 127.0.0.1
|
||||
# Disabling symbolic-links is recommended to prevent assorted security risks
|
||||
symbolic-links=0
|
||||
max_connections=1000
|
||||
@@ -0,0 +1,35 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name www.likeshopv2.localhost;
|
||||
access_log /logs/www.likeshopv2.localhost_access_nginx.log;
|
||||
error_log /logs/www.likeshopv2.localhost_error_nginx.log;
|
||||
client_max_body_size 5M;
|
||||
location / {
|
||||
root /server/public;
|
||||
index index.html index.htm index.php;
|
||||
if (!-e $request_filename)
|
||||
{
|
||||
rewrite ^/(.*)$ /index.php?s=$1 last;
|
||||
break;
|
||||
}
|
||||
}
|
||||
location ~ /.*\.php/ {
|
||||
rewrite ^(.*?/?)(.*\.php)(.*)$ /$2?s=$3 last;
|
||||
break;
|
||||
}
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /var/www/html;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass likeshop-php7.2:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME /server/public$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
location = /favicon.ico {
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
|
||||
user nginx;
|
||||
worker_processes 1;
|
||||
|
||||
error_log /var/log/nginx/error.log warn;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
access_log /var/log/nginx/access.log main;
|
||||
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
|
||||
keepalive_timeout 65;
|
||||
|
||||
#gzip on;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
location / {
|
||||
return 404;
|
||||
}
|
||||
}
|
||||
|
||||
include /etc/nginx/conf.d/company/*.conf;
|
||||
include /etc/nginx/conf.d/my/*.conf;
|
||||
include /etc/nginx/conf.d/product/*.conf;
|
||||
include /etc/nginx/conf.d/project/*.conf;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
upload_max_filesize = 5M
|
||||
@@ -0,0 +1,99 @@
|
||||
#// +----------------------------------------------------------------------
|
||||
#// | likeshop100%开源免费商用商城系统
|
||||
#// +----------------------------------------------------------------------
|
||||
#// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
#// | 开源版本可自由商用,保留版权即可
|
||||
#// | 商业版本务必购买商业授权,以免引起法律纠纷
|
||||
#// | 禁止对系统程序代码以任何目的,任何形式的再发布
|
||||
#// | gitee下载:https://gitee.com/likeshop_gitee
|
||||
#// | github下载:https://github.com/likeshop-github
|
||||
#// | 访问官网:https://www.likeshop.cn
|
||||
#// | 访问社区:https://home.likeshop.cn
|
||||
#// | 访问手册:http://doc.likeshop.cn
|
||||
#// | 微信公众号:likeshop技术社区
|
||||
#// | likeshop团队 版权所有 拥有最终解释权
|
||||
#// +----------------------------------------------------------------------
|
||||
#// | author: likeshopTeam
|
||||
#// +----------------------------------------------------------------------
|
||||
version: '3'
|
||||
|
||||
networks:
|
||||
likeshop:
|
||||
driver: bridge
|
||||
|
||||
services:
|
||||
|
||||
nginx:
|
||||
container_name: likeshop-nginx
|
||||
image: nginx:1.17.0
|
||||
restart: always
|
||||
depends_on:
|
||||
- "php7.2.4"
|
||||
volumes:
|
||||
- ../server:/server
|
||||
- ./config/nginx/conf.d:/etc/nginx/conf.d
|
||||
- ./log/nginx/logs:/logs
|
||||
networks:
|
||||
- likeshop
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
|
||||
|
||||
|
||||
|
||||
php7.2.4:
|
||||
container_name: likeshop-php7.2
|
||||
image: likeshop/php:7.2.34-fpm
|
||||
restart: always
|
||||
working_dir: /server
|
||||
volumes:
|
||||
- ../server:/server
|
||||
- ./config/php/php.ini:/usr/local/etc/php/php.ini
|
||||
networks:
|
||||
- likeshop
|
||||
ports:
|
||||
- "9004:9000"
|
||||
#user: "1000:1000"
|
||||
|
||||
|
||||
|
||||
mysql:
|
||||
container_name: likeshop-mysql
|
||||
image: mysql:5.7.29 #X86架构
|
||||
#image: amd64/mysql:5.7.29 #arm架构
|
||||
restart: always
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: root
|
||||
volumes:
|
||||
- ./data/mysql5.7.29/lib:/var/lib/mysql
|
||||
- ./config/mysql/mysqld.cnf:/etc/mysql/my.cnf
|
||||
networks:
|
||||
- likeshop
|
||||
ports:
|
||||
- "3306:3306"
|
||||
|
||||
|
||||
redis:
|
||||
container_name: likeshop-redis
|
||||
image: redis:5.0.5
|
||||
restart: always
|
||||
volumes:
|
||||
- ./data/redis:/data
|
||||
networks:
|
||||
- likeshop
|
||||
ports:
|
||||
- "6379:6379"
|
||||
|
||||
node:
|
||||
container_name: likeshop-node
|
||||
image: node:10.15.3
|
||||
restart: always
|
||||
volumes:
|
||||
- ../web:/web
|
||||
networks:
|
||||
- likeshop
|
||||
tty: true
|
||||
working_dir: /web
|
||||
ports:
|
||||
- "8080:8080"
|
||||
Reference in New Issue
Block a user