Merge branch 'master' into master-xiagw
This commit is contained in:
commit
0b0cbdd18d
|
@ -1003,3 +1003,8 @@ ELK_VERSION=7.9.1
|
||||||
### Tarantool ##################################################
|
### Tarantool ##################################################
|
||||||
TARANTOOL_PORT=3301
|
TARANTOOL_PORT=3301
|
||||||
TARANTOOL_ADMIN_PORT=8002
|
TARANTOOL_ADMIN_PORT=8002
|
||||||
|
|
||||||
|
### NATS ##################################################
|
||||||
|
NATS_CLIENT_PORT=4222
|
||||||
|
NATS_MONITORING_PORT=6222
|
||||||
|
NATS_ROUTE_PORT=8222
|
||||||
|
|
|
@ -958,7 +958,7 @@ More details about this [here](https://github.com/jenssegers/laravel-mongodb#ins
|
||||||
docker-compose up -d mariadb phpmyadmin
|
docker-compose up -d mariadb phpmyadmin
|
||||||
```
|
```
|
||||||
*Note: To use with MariaDB, open `.env` and set `PMA_DB_ENGINE=mysql` to `PMA_DB_ENGINE=mariadb`.*
|
*Note: To use with MariaDB, open `.env` and set `PMA_DB_ENGINE=mysql` to `PMA_DB_ENGINE=mariadb`.*
|
||||||
2. Open your browser and visit the localhost on port **8080**: `http://localhost:8080`
|
2. Open your browser and visit the localhost on port **8081**: `http://localhost:8081`, use server: "mysql", user: "default" and password: "secret for the default mysql setup.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
15
README-zh.md
15
README-zh.md
|
@ -72,6 +72,21 @@ git clone https://github.com/laradock/laradock.git
|
||||||
```bash
|
```bash
|
||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
```
|
```
|
||||||
|
如果你在中国内地,可以修改一些配置来进行镜像加速,不过build时还是会请求GitHub来下载一些文件,此时需要保证你的计算机能连上GitHub
|
||||||
|
(1)配置DockerHub镜像加速,[链接](https://www.runoob.com/docker/docker-mirror-acceleration.html)
|
||||||
|
(2) 修改.env
|
||||||
|
```
|
||||||
|
# 开启ubuntu国内源
|
||||||
|
CHANGE_SOURCE=true
|
||||||
|
# 默认是阿里云,可选项有aliyun|zju|tsinghua|163|ustc
|
||||||
|
UBUNTU_SOURCE=aliyun
|
||||||
|
# composer镜像源
|
||||||
|
WORKSPACE_COMPOSER_REPO_PACKAGIST=https://mirrors.aliyun.com/composer/
|
||||||
|
# nvm镜像源
|
||||||
|
WORKSPACE_NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node
|
||||||
|
# npm镜像源
|
||||||
|
WORKSPACE_NPM_REGISTRY=https://registry.npm.taobao.org
|
||||||
|
```
|
||||||
|
|
||||||
3. 运行这些容器。
|
3. 运行这些容器。
|
||||||
```bash
|
```bash
|
||||||
|
|
|
@ -9,19 +9,19 @@ VOLUME /sessions
|
||||||
# SQL SERVER:
|
# SQL SERVER:
|
||||||
#####################################
|
#####################################
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
ARG INSTALL_MSSQL=false
|
ARG INSTALL_MSSQL=false
|
||||||
ENV INSTALL_MSSQL ${INSTALL_MSSQL}
|
ENV INSTALL_MSSQL ${INSTALL_MSSQL}
|
||||||
|
|
||||||
RUN if [ ${INSTALL_MSSQL} = true ]; then \
|
RUN if [ ${INSTALL_MSSQL} = true ]; then \
|
||||||
set -xe \
|
set -xe \
|
||||||
# && apk --update add --no-cache --virtual .phpize-deps $PHPIZE_DEPS unixodbc unixodbc-dev \
|
&& apk update \
|
||||||
# && pecl channel-update pecl.php.net \
|
&& apk add --no-cache --virtual .php-build-dependencies unixodbc-dev freetds-dev \
|
||||||
# && pecl install pdo_sqlsrv-4.1.8preview sqlsrv-4.1.8preview \
|
&& apk add --virtual .php-runtime-dependencies unixodbc freetds \
|
||||||
# && echo "extension=sqlsrv.so" > /usr/local/etc/php/conf.d/20-sqlsrv.ini \
|
&& docker-php-ext-configure pdo_odbc --with-pdo-odbc=unixODBC,/usr \
|
||||||
# && echo "extension=pdo_sqlsrv.so" > /usr/local/etc/php/conf.d/20-pdo_sqlsrv.ini \
|
&& docker-php-ext-install pdo_odbc pdo_dblib \
|
||||||
&& apk --update add --no-cache freetds unixodbc \
|
&& apk del .php-build-dependencies \
|
||||||
&& apk --update add --no-cache --virtual .build-deps $PHPIZE_DEPS freetds-dev unixodbc-dev \
|
&& rm -rf /var/cache/apk/* \
|
||||||
&& docker-php-ext-install pdo_dblib \
|
|
||||||
&& apk del .build-deps \
|
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
USER adminer
|
USER adminer
|
||||||
|
|
|
@ -17,5 +17,5 @@ if [ ${APACHE_HTTP2} = true ]; then
|
||||||
service apache2 restart
|
service apache2 restart
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Start supervisord in foreground
|
# Start apache in foreground
|
||||||
supervisord
|
/usr/sbin/apache2ctl -D FOREGROUND
|
||||||
|
|
|
@ -522,7 +522,7 @@ services:
|
||||||
- SA_PASSWORD=${MSSQL_PASSWORD}
|
- SA_PASSWORD=${MSSQL_PASSWORD}
|
||||||
- ACCEPT_EULA=Y
|
- ACCEPT_EULA=Y
|
||||||
volumes:
|
volumes:
|
||||||
- ${DATA_PATH_HOST}/mssql:/var/opt/mssql
|
- mssql:/var/opt/mssql
|
||||||
ports:
|
ports:
|
||||||
- "${MSSQL_PORT}:1433"
|
- "${MSSQL_PORT}:1433"
|
||||||
networks:
|
networks:
|
||||||
|
@ -612,6 +612,15 @@ services:
|
||||||
image: 'neo4j:latest'
|
image: 'neo4j:latest'
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
### Nats ################################################
|
||||||
|
nats:
|
||||||
|
build: ./nats
|
||||||
|
ports:
|
||||||
|
- "${NATS_CLIENT_PORT}:4222"
|
||||||
|
- "${NATS_MONITORING_PORT}:6222"
|
||||||
|
- "${NATS_ROUTE_PORT}:8222"
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
### MongoDB ##############################################
|
### MongoDB ##############################################
|
||||||
mongo:
|
mongo:
|
||||||
|
|
|
@ -5,3 +5,6 @@
|
||||||
# For explanations see
|
# For explanations see
|
||||||
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
|
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
|
||||||
|
|
||||||
|
[mysqld]
|
||||||
|
innodb_log_file_size = 4048M
|
||||||
|
innodb_strict_mode = 0
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
FROM nats:latest
|
||||||
|
|
||||||
|
LABEL maintainer="Alexander Palchikov <axelpal@gmail.com>"
|
||||||
|
|
||||||
|
COPY nats-server.conf /etc/nats/nats-server.conf
|
|
@ -0,0 +1,25 @@
|
||||||
|
# Client port of 4222 on all interfaces
|
||||||
|
port: 4222
|
||||||
|
|
||||||
|
# HTTP monitoring port
|
||||||
|
monitor_port: 8222
|
||||||
|
|
||||||
|
# This is for clustering multiple servers together.
|
||||||
|
cluster {
|
||||||
|
|
||||||
|
# Route connections to be received on any interface on port 6222
|
||||||
|
port: 6222
|
||||||
|
|
||||||
|
# Routes are protected, so need to use them with --routes flag
|
||||||
|
# e.g. --routes=nats-route://ruser:T0pS3cr3t@otherdockerhost:6222
|
||||||
|
authorization {
|
||||||
|
user: ruser
|
||||||
|
password: T0pS3cr3t
|
||||||
|
timeout: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
# Routes are actively solicited and connected to from this server.
|
||||||
|
# This Docker image has none by default, but you can pass a
|
||||||
|
# flag to the gnatsd docker image to create one to an existing server.
|
||||||
|
routes = []
|
||||||
|
}
|
|
@ -8,76 +8,76 @@ if type "tee" 2>/dev/null && [ -n "${UBUNTU_SOURCE}" ]; then
|
||||||
case "${UBUNTU_SOURCE}" in
|
case "${UBUNTU_SOURCE}" in
|
||||||
"aliyun")
|
"aliyun")
|
||||||
tee ${SOURCE_PATH} <<-'EOF'
|
tee ${SOURCE_PATH} <<-'EOF'
|
||||||
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
|
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
|
||||||
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
|
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
|
||||||
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
|
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
|
||||||
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
|
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
|
||||||
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
|
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
|
||||||
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
|
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
|
||||||
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
|
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
|
||||||
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
|
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
|
||||||
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
|
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
|
||||||
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
|
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
"zju")
|
"zju")
|
||||||
tee ${SOURCE_PATH} <<-'EOF'
|
tee ${SOURCE_PATH} <<-'EOF'
|
||||||
deb http://mirrors.zju.edu.cn/ubuntu/ bionic main multiverse restricted universe
|
deb http://mirrors.zju.edu.cn/ubuntu/ focal main multiverse restricted universe
|
||||||
deb http://mirrors.zju.edu.cn/ubuntu/ bionic-backports main multiverse restricted universe
|
deb http://mirrors.zju.edu.cn/ubuntu/ focal-backports main multiverse restricted universe
|
||||||
deb http://mirrors.zju.edu.cn/ubuntu/ bionic-proposed main multiverse restricted universe
|
deb http://mirrors.zju.edu.cn/ubuntu/ focal-proposed main multiverse restricted universe
|
||||||
deb http://mirrors.zju.edu.cn/ubuntu/ bionic-security main multiverse restricted universe
|
deb http://mirrors.zju.edu.cn/ubuntu/ focal-security main multiverse restricted universe
|
||||||
deb http://mirrors.zju.edu.cn/ubuntu/ bionic-updates main multiverse restricted universe
|
deb http://mirrors.zju.edu.cn/ubuntu/ focal-updates main multiverse restricted universe
|
||||||
deb-src http://mirrors.zju.edu.cn/ubuntu/ bionic main multiverse restricted universe
|
deb-src http://mirrors.zju.edu.cn/ubuntu/ focal main multiverse restricted universe
|
||||||
deb-src http://mirrors.zju.edu.cn/ubuntu/ bionic-backports main multiverse restricted universe
|
deb-src http://mirrors.zju.edu.cn/ubuntu/ focal-backports main multiverse restricted universe
|
||||||
deb-src http://mirrors.zju.edu.cn/ubuntu/ bionic-proposed main multiverse restricted universe
|
deb-src http://mirrors.zju.edu.cn/ubuntu/ focal-proposed main multiverse restricted universe
|
||||||
deb-src http://mirrors.zju.edu.cn/ubuntu/ bionic-security main multiverse restricted universe
|
deb-src http://mirrors.zju.edu.cn/ubuntu/ focal-security main multiverse restricted universe
|
||||||
deb-src http://mirrors.zju.edu.cn/ubuntu/ bionic-updates main multiverse restricted universe
|
deb-src http://mirrors.zju.edu.cn/ubuntu/ focal-updates main multiverse restricted universe
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
"tsinghua")
|
"tsinghua")
|
||||||
tee ${SOURCE_PATH} <<-'EOF'
|
tee ${SOURCE_PATH} <<-'EOF'
|
||||||
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
|
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
|
||||||
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
|
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
|
||||||
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
|
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
|
||||||
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
|
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
|
||||||
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
|
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
|
||||||
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
|
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
|
||||||
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
|
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
|
||||||
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
|
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
|
||||||
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
|
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
|
||||||
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
|
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
"163")
|
"163")
|
||||||
tee ${SOURCE_PATH} <<-'EOF'
|
tee ${SOURCE_PATH} <<-'EOF'
|
||||||
deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
|
deb http://mirrors.163.com/ubuntu/ focal main restricted universe multiverse
|
||||||
deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
|
deb http://mirrors.163.com/ubuntu/ focal-security main restricted universe multiverse
|
||||||
deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
|
deb http://mirrors.163.com/ubuntu/ focal-updates main restricted universe multiverse
|
||||||
deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
|
deb http://mirrors.163.com/ubuntu/ focal-proposed main restricted universe multiverse
|
||||||
deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
|
deb http://mirrors.163.com/ubuntu/ focal-backports main restricted universe multiverse
|
||||||
deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
|
deb-src http://mirrors.163.com/ubuntu/ focal main restricted universe multiverse
|
||||||
deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
|
deb-src http://mirrors.163.com/ubuntu/ focal-security main restricted universe multiverse
|
||||||
deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
|
deb-src http://mirrors.163.com/ubuntu/ focal-updates main restricted universe multiverse
|
||||||
deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
|
deb-src http://mirrors.163.com/ubuntu/ focal-proposed main restricted universe multiverse
|
||||||
deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
|
deb-src http://mirrors.163.com/ubuntu/ focal-backports main restricted universe multiverse
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
"ustc")
|
"ustc")
|
||||||
tee ${SOURCE_PATH} <<-'EOF'
|
tee ${SOURCE_PATH} <<-'EOF'
|
||||||
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
|
deb https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
|
||||||
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
|
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
|
||||||
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
|
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
|
||||||
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
|
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
|
||||||
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
|
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
|
||||||
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
|
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
|
||||||
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
|
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
|
||||||
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
|
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
|
||||||
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
|
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
|
||||||
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
|
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Please check whether there is aliyun|zju|tsinghua|163|ustc in the parameter"
|
echo "Please check whether there is aliyun|zju|tsinghua|163|ustc in the parameter"
|
||||||
exit 1;;
|
exit 1;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue