first commit
This commit is contained in:
commit
f996dea3e7
57
docker-compose.yml
Normal file
57
docker-compose.yml
Normal file
@ -0,0 +1,57 @@
|
||||
version: '3.1'
|
||||
services:
|
||||
lsky:
|
||||
image: halcyonazure/lsky-pro-docker:latest
|
||||
restart: always
|
||||
container_name: lsky
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
volumes:
|
||||
- ./uploads:/var/www/html/storage/app/uploads
|
||||
expose:
|
||||
- 8089
|
||||
depends_on:
|
||||
- mysql
|
||||
networks:
|
||||
- lsky
|
||||
nginx:
|
||||
image: nginx:1.23.1-alpine
|
||||
restart: always
|
||||
container_name: proxy-lsky
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
ports:
|
||||
- 80:80
|
||||
depends_on:
|
||||
- lsky
|
||||
volumes:
|
||||
- ./nginx/conf.d:/etc/nginx/conf.d
|
||||
privileged: true
|
||||
networks:
|
||||
- lsky
|
||||
mysql:
|
||||
image: mysql:8.0.27
|
||||
restart: always
|
||||
container_name: lsky-mysql
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
MYSQL_DATABASE: lsky
|
||||
MYSQL_USER: lsky
|
||||
MYSQL_PASSWORD: admin@123456
|
||||
MYSQL_ROOT_PASSWORD: admin@123456
|
||||
expose:
|
||||
- 3306
|
||||
volumes:
|
||||
- ./mysql/data:/var/lib/mysql
|
||||
- ./mysql/conf/my.cnf:/etc/mysql/my.cnf
|
||||
- ./mysql/mysql-files:/var/lib/mysql-files
|
||||
command:
|
||||
--max_connections=1000
|
||||
--character-set-server=utf8mb4
|
||||
--collation-server=utf8mb4_general_ci
|
||||
--default-authentication-plugin=mysql_native_password
|
||||
networks:
|
||||
- lsky
|
||||
networks:
|
||||
lsky:
|
||||
driver: bridge
|
8
mysql/conf/my.cnf
Normal file
8
mysql/conf/my.cnf
Normal file
@ -0,0 +1,8 @@
|
||||
[mysqld]
|
||||
user=mysql
|
||||
default-storage-engine=INNODB
|
||||
character-set-server=utf8
|
||||
[client]
|
||||
default-character-set=utf8
|
||||
[mysql]
|
||||
default-character-set=utf8
|
18
nginx/conf.d/default.conf
Normal file
18
nginx/conf.d/default.conf
Normal file
@ -0,0 +1,18 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
client_max_body_size 1024m;
|
||||
|
||||
location / {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Nginx-Proxy true;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_pass http://lsky:8089;
|
||||
}
|
||||
}
|
2
uploads/.gitignore
vendored
Executable file
2
uploads/.gitignore
vendored
Executable file
@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
Loading…
Reference in New Issue
Block a user