安装git
https://www.git-scm.com/download/
安装docker(Windows专业版或者教育版)
https://www.docker.com 好像是登录才能下载,反正我是注册登录才下载的。
使用laradock
http://laradock.io/ 可以自行查看使用文档
修改.env
########################################################### ###################### General Setup ###################### ########################################################### ######Open your project’s .env file and set the following ### Paths ################################################# # Point to the path of your applications code on your host APP_CODE_PATH_HOST=../www # Point to where the `APP_CODE_PATH_HOST` should be in the container APP_CODE_PATH_CONTAINER=/var/www # You may add flags to the path `:cached`, `:delegated`. When using Docker Sync add `:nocopy` APP_CODE_CONTAINER_FLAG=:cached # Choose storage path on your machine. For all storage systems DATA_PATH_HOST=~/.laradock/data ### Drivers ################################################ # All volumes driver VOLUMES_DRIVER=local # All Networks driver NETWORKS_DRIVER=bridge ### Docker compose files ################################## # Select which docker-compose files to include. If using docker-sync append `:docker-compose.sync.yml` at the end COMPOSE_FILE=docker-compose.yml # Change the separator from : to ; on Windows COMPOSE_PATH_SEPARATOR=: # Define the prefix of container names. This is useful if you have multiple projects that use laradock to have seperate containers per project. COMPOSE_PROJECT_NAME=laradock ### PHP Version ########################################### # Select a PHP version of the Workspace and PHP-FPM containers (Does not apply to HHVM). Accepted values: 7.3 - 7.2 - 7.1 - 7.0 - 5.6 PHP_VERSION=7.2 ### Phalcon Version ########################################### # Select a Phalcon version of the Workspace and PHP-FPM containers (Does not apply to HHVM). Accepted values: 3.4.0+ PHALCON_VERSION=3.4.1 ### PHP Interpreter ####################################### # Select the PHP Interpreter. Accepted values: hhvm - php-fpm PHP_INTERPRETER=php-fpm ### Docker Host IP ######################################## # Enter your Docker Host IP (will be appended to /etc/hosts). Default is `10.0.75.1` DOCKER_HOST_IP=10.0.75.1 ### Remote Interpreter #################################### # Choose a Remote Interpreter entry matching name. Default is `laradock` PHP_IDE_CONFIG=serverName=laradock ### Windows Path ########################################## # A fix for Windows users, to ensure the application path works COMPOSE_CONVERT_WINDOWS_PATHS=1 ### Environment ########################################### # If you need to change the sources (i.e. to China), set CHANGE_SOURCE to true CHANGE_SOURCE=false ### Docker Sync ########################################### # If you are using Docker Sync. For `osx` use 'native_osx', for `windows` use 'unison', for `linux` docker-sync is not required DOCKER_SYNC_STRATEGY=native_osx ########################################################### ################ Containers Customization ################# ########################################################### ### WORKSPACE ############################################# WORKSPACE_COMPOSER_GLOBAL_INSTALL=true WORKSPACE_COMPOSER_AUTH=true WORKSPACE_COMPOSER_REPO_PACKAGIST=https://packagist.phpcomposer.com WORKSPACE_INSTALL_NODE=false WORKSPACE_NODE_VERSION=node WORKSPACE_NPM_REGISTRY= WORKSPACE_INSTALL_YARN=false WORKSPACE_YARN_VERSION=latest WORKSPACE_INSTALL_NPM_GULP=false WORKSPACE_INSTALL_NPM_BOWER=false WORKSPACE_INSTALL_NPM_VUE_CLI=true WORKSPACE_INSTALL_NPM_ANGULAR_CLI=false WORKSPACE_INSTALL_PHPREDIS=true WORKSPACE_INSTALL_WORKSPACE_SSH=false WORKSPACE_INSTALL_SUBVERSION=false WORKSPACE_INSTALL_XDEBUG=false WORKSPACE_INSTALL_PHPDBG=false WORKSPACE_INSTALL_SSH2=false WORKSPACE_INSTALL_LDAP=false WORKSPACE_INSTALL_GMP=false WORKSPACE_INSTALL_SOAP=false WORKSPACE_INSTALL_XSL=false WORKSPACE_INSTALL_IMAP=false WORKSPACE_INSTALL_MONGO=false WORKSPACE_INSTALL_AMQP=false WORKSPACE_INSTALL_MSSQL=false WORKSPACE_INSTALL_DRUSH=false WORKSPACE_DRUSH_VERSION=8.1.17 WORKSPACE_INSTALL_DRUPAL_CONSOLE=false WORKSPACE_INSTALL_WP_CLI=false WORKSPACE_INSTALL_AEROSPIKE=false WORKSPACE_INSTALL_V8JS=false WORKSPACE_INSTALL_LARAVEL_ENVOY=false WORKSPACE_INSTALL_LARAVEL_INSTALLER=false WORKSPACE_INSTALL_DEPLOYER=false WORKSPACE_INSTALL_PRESTISSIMO=false WORKSPACE_INSTALL_LINUXBREW=false WORKSPACE_INSTALL_MC=false WORKSPACE_INSTALL_SYMFONY=false WORKSPACE_INSTALL_PYTHON=false WORKSPACE_INSTALL_POWERLINE=false WORKSPACE_INSTALL_IMAGE_OPTIMIZERS=false WORKSPACE_INSTALL_IMAGEMAGICK=false WORKSPACE_INSTALL_TERRAFORM=false WORKSPACE_INSTALL_DUSK_DEPS=false WORKSPACE_INSTALL_PG_CLIENT=false WORKSPACE_INSTALL_PHALCON=false WORKSPACE_INSTALL_SWOOLE=false WORKSPACE_INSTALL_LIBPNG=false WORKSPACE_INSTALL_IONCUBE=false WORKSPACE_INSTALL_MYSQL_CLIENT=false WORKSPACE_INSTALL_INOTIFY=false WORKSPACE_INSTALL_FSWATCH=false WORKSPACE_PUID=1000 WORKSPACE_PGID=1000 WORKSPACE_CHROME_DRIVER_VERSION=2.42 WORKSPACE_TIMEZONE=UTC WORKSPACE_SSH_PORT=2222 WORKSPACE_INSTALL_FFMPEG=false ### PHP_FPM ############################################### PHP_FPM_INSTALL_BCMATH=true PHP_FPM_INSTALL_MYSQLI=true PHP_FPM_INSTALL_INTL=true PHP_FPM_INSTALL_IMAGEMAGICK=true PHP_FPM_INSTALL_OPCACHE=true PHP_FPM_INSTALL_IMAGE_OPTIMIZERS=true PHP_FPM_INSTALL_PHPREDIS=true PHP_FPM_INSTALL_MEMCACHED=false PHP_FPM_INSTALL_XDEBUG=false PHP_FPM_INSTALL_PHPDBG=false PHP_FPM_INSTALL_IMAP=false PHP_FPM_INSTALL_MONGO=false PHP_FPM_INSTALL_AMQP=false PHP_FPM_INSTALL_MSSQL=false PHP_FPM_INSTALL_SSH2=false PHP_FPM_INSTALL_SOAP=false PHP_FPM_INSTALL_XSL=false PHP_FPM_INSTALL_GMP=false # PHP_FPM_INSTALL_EXIF=true PHP_FPM_INSTALL_AEROSPIKE=false PHP_FPM_INSTALL_PGSQL=false PHP_FPM_INSTALL_GHOSTSCRIPT=false PHP_FPM_INSTALL_LDAP=false PHP_FPM_INSTALL_PHALCON=false PHP_FPM_INSTALL_SWOOLE=false PHP_FPM_INSTALL_PG_CLIENT=false PHP_FPM_INSTALL_PCNTL=false PHP_FPM_INSTALL_CALENDAR=false PHP_FPM_INSTALL_FAKETIME=false PHP_FPM_INSTALL_IONCUBE=false PHP_FPM_FAKETIME=-0 PHP_FPM_INSTALL_APCU=false PHP_FPM_INSTALL_YAML=false PHP_FPM_INSTALL_ADDITIONAL_LOCALES=false PHP_FPM_INSTALL_MYSQL_CLIENT=false PHP_FPM_ADDITIONAL_LOCALES="es_ES.UTF-8 fr_FR.UTF-8" ### PHP_WORKER ############################################ PHP_WORKER_INSTALL_PGSQL=false PHP_WORKER_INSTALL_BCMATH=false PHP_WORKER_INSTALL_PHALCON=false PHP_WORKER_INSTALL_SOAP=false PHP_WORKER_INSTALL_ZIP_ARCHIVE=false PHP_WORKER_INSTALL_MYSQL_CLIENT=false PHP_WORKER_INSTALL_AMQP=false PHP_WORKER_INSTALL_GHOSTSCRIPT=false PHP_WORKER_INSTALL_SWOOLE=false PHP_WORKER_PUID=1000 PHP_WORKER_PGID=1000 ### NGINX ################################################# NGINX_HOST_HTTP_PORT=80 NGINX_HOST_HTTPS_PORT=443 NGINX_HOST_LOG_PATH=./logs/nginx/ NGINX_SITES_PATH=./nginx/sites/ NGINX_PHP_UPSTREAM_CONTAINER=php-fpm NGINX_PHP_UPSTREAM_PORT=9000 NGINX_SSL_PATH=./nginx/ssl/ ### APACHE ################################################ APACHE_HOST_HTTP_PORT=80 APACHE_HOST_HTTPS_PORT=443 APACHE_HOST_LOG_PATH=./logs/apache2 APACHE_SITES_PATH=./apache2/sites APACHE_PHP_UPSTREAM_CONTAINER=php-fpm APACHE_PHP_UPSTREAM_PORT=9000 APACHE_PHP_UPSTREAM_TIMEOUT=60 APACHE_DOCUMENT_ROOT=/var/www/ ### MYSQL ################################################# MYSQL_VERSION=5.7 MYSQL_DATABASE=default MYSQL_USER=default MYSQL_PASSWORD=secret MYSQL_PORT=3306 MYSQL_ROOT_PASSWORD=root MYSQL_ENTRYPOINT_INITDB=./mysql/docker-entrypoint-initdb.d ### REDIS ################################################# REDIS_PORT=6379 ### REDIS CLUSTER ######################################### REDIS_CLUSTER_PORT_RANGE=7000-7005 ### ZooKeeper ############################################# ZOOKEEPER_PORT=2181 ### Percona ############################################### PERCONA_DATABASE=homestead PERCONA_USER=homestead PERCONA_PASSWORD=secret PERCONA_PORT=3306 PERCONA_ROOT_PASSWORD=root PERCONA_ENTRYPOINT_INITDB=./percona/docker-entrypoint-initdb.d ### MSSQL ################################################# MSSQL_DATABASE=homestead MSSQL_PASSWORD=yourStrong(!)Password MSSQL_PORT=1433 ### MARIADB ############################################### MARIADB_DATABASE=default MARIADB_USER=default MARIADB_PASSWORD=secret MARIADB_PORT=3306 MARIADB_ROOT_PASSWORD=root MARIADB_ENTRYPOINT_INITDB=./mariadb/docker-entrypoint-initdb.d ### POSTGRES ############################################## POSTGRES_DB=default POSTGRES_USER=default POSTGRES_PASSWORD=secret POSTGRES_PORT=5432 POSTGRES_ENTRYPOINT_INITDB=./postgres/docker-entrypoint-initdb.d ### RABBITMQ ############################################## RABBITMQ_NODE_HOST_PORT=5672 RABBITMQ_MANAGEMENT_HTTP_HOST_PORT=15672 RABBITMQ_MANAGEMENT_HTTPS_HOST_PORT=15671 RABBITMQ_DEFAULT_USER=guest RABBITMQ_DEFAULT_PASS=guest ### ELASTICSEARCH ######################################### ELASTICSEARCH_HOST_HTTP_PORT=9200 ELASTICSEARCH_HOST_TRANSPORT_PORT=9300 ### KIBANA ################################################ KIBANA_HTTP_PORT=5601 ### MEMCACHED ############################################# MEMCACHED_HOST_PORT=11211 ### BEANSTALKD CONSOLE #################################### BEANSTALKD_CONSOLE_BUILD_PATH=./beanstalkd-console BEANSTALKD_CONSOLE_CONTAINER_NAME=beanstalkd-console BEANSTALKD_CONSOLE_HOST_PORT=2080 ### BEANSTALKD ############################################ BEANSTALKD_HOST_PORT=11300 ### SELENIUM ############################################## SELENIUM_PORT=4444 ### MINIO ################################################# MINIO_PORT=9000 ### ADMINER ############################################### ADM_PORT=8080 ADM_INSTALL_MSSQL=false ### PHP MY ADMIN ########################################## # Accepted values: mariadb - mysql PMA_DB_ENGINE=mysql # Credentials/Port: PMA_USER=default PMA_PASSWORD=secret PMA_ROOT_PASSWORD=secret PMA_PORT=8080 ### MAILDEV ############################################### MAILDEV_HTTP_PORT=1080 MAILDEV_SMTP_PORT=25 ### VARNISH ############################################### VARNISH_CONFIG=/etc/varnish/default.vcl VARNISH_PORT=8080 VARNISH_BACKEND_PORT=8888 VARNISHD_PARAMS=-p default_ttl=3600 -p default_grace=3600 ### Varnish ############################################### # Proxy 1 VARNISH_PROXY1_CACHE_SIZE=128m VARNISH_PROXY1_BACKEND_HOST=workspace VARNISH_PROXY1_SERVER=SERVER1 # Proxy 2 VARNISH_PROXY2_CACHE_SIZE=128m VARNISH_PROXY2_BACKEND_HOST=workspace VARNISH_PROXY2_SERVER=SERVER2 ### HAPROXY ############################################### HAPROXY_HOST_HTTP_PORT=8085 ### JENKINS ############################################### JENKINS_HOST_HTTP_PORT=8090 JENKINS_HOST_SLAVE_AGENT_PORT=50000 JENKINS_HOME=./jenkins/jenkins_home ### GRAFANA ############################################### GRAFANA_PORT=3000 ### BLACKFIRE ############################################# # Create an account on blackfire.io. Don't enable blackfire and xDebug at the same time. # visit https://blackfire.io/docs/24-days/06-installation#install-probe-debian for more info. INSTALL_BLACKFIRE=false BLACKFIRE_CLIENT_ID=<client_id> BLACKFIRE_CLIENT_TOKEN=<client_token> BLACKFIRE_SERVER_ID=<server_id> BLACKFIRE_SERVER_TOKEN=<server_token> ### AEROSPIKE ############################################# AEROSPIKE_SERVICE_PORT=3000 AEROSPIKE_FABRIC_PORT=3001 AEROSPIKE_HEARTBEAT_PORT=3002 AEROSPIKE_INFO_PORT=3003 ### RETHINKDB ############################################# RETHINKDB_PORT=8090 ### MONGODB ############################################### MONGODB_PORT=27017 ### CADDY ################################################# CADDY_HOST_HTTP_PORT=80 CADDY_HOST_HTTPS_PORT=443 CADDY_HOST_LOG_PATH=./logs/caddy CADDY_CONFIG_PATH=./caddy/caddy ### LARAVEL ECHO SERVER ################################### LARAVEL_ECHO_SERVER_PORT=6001 ### THUMBOR ############################################################################################################ THUMBOR_PORT=8000 THUMBOR_LOG_FORMAT="%(asctime)s %(name)s:%(levelname)s %(message)s" THUMBOR_LOG_DATE_FORMAT="%Y-%m-%d %H:%M:%S" MAX_WIDTH=0 MAX_HEIGHT=0 MIN_WIDTH=1 MIN_HEIGHT=1 ALLOWED_SOURCES=[] QUALITY=80 WEBP_QUALITY=None PNG_COMPRESSION_LEVEL=6 AUTO_WEBP=False MAX_AGE=86400 MAX_AGE_TEMP_IMAGE=0 RESPECT_ORIENTATION=False IGNORE_SMART_ERRORS=False PRESERVE_EXIF_INFO=False ALLOW_ANIMATED_GIFS=True USE_GIFSICLE_ENGINE=False USE_BLACKLIST=False LOADER=thumbor.loaders.http_loader STORAGE=thumbor.storages.file_storage AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= RESULT_STORAGE=thumbor.result_storages.file_storage ENGINE=thumbor.engines.pil SECURITY_KEY="MY_SECURE_KEY" ALLOW_UNSAFE_URL=True ALLOW_OLD_URLS=True FILE_LOADER_ROOT_PATH=/data/loader HTTP_LOADER_CONNECT_TIMEOUT=5 HTTP_LOADER_REQUEST_TIMEOUT=20 HTTP_LOADER_FOLLOW_REDIRECTS=True HTTP_LOADER_MAX_REDIRECTS=5 HTTP_LOADER_FORWARD_USER_AGENT=False HTTP_LOADER_DEFAULT_USER_AGENT="Thumbor/5.2.1" HTTP_LOADER_PROXY_HOST=None HTTP_LOADER_PROXY_PORT=None HTTP_LOADER_PROXY_USERNAME=None HTTP_LOADER_PROXY_PASSWORD=None HTTP_LOADER_CA_CERTS=None HTTP_LOADER_VALIDATE_CERTS=True HTTP_LOADER_CLIENT_KEY=None HTTP_LOADER_CLIENT_CERT=None HTTP_LOADER_CURL_ASYNC_HTTP_CLIENT=False STORAGE_EXPIRATION_SECONDS=2592000 STORES_CRYPTO_KEY_FOR_EACH_IMAGE=False FILE_STORAGE_ROOT_PATH=/data/storage UPLOAD_MAX_SIZE=0 UPLOAD_ENABLED=False UPLOAD_PHOTO_STORAGE=thumbor.storages.file_storage UPLOAD_DELETE_ALLOWED=False UPLOAD_PUT_ALLOWED=False UPLOAD_DEFAULT_FILENAME=image MONGO_STORAGE_SERVER_HOST=mongo MONGO_STORAGE_SERVER_PORT=27017 MONGO_STORAGE_SERVER_DB=thumbor MONGO_STORAGE_SERVER_COLLECTION=images REDIS_STORAGE_SERVER_HOST=redis REDIS_STORAGE_SERVER_PORT=6379 REDIS_STORAGE_SERVER_DB=0 REDIS_STORAGE_SERVER_PASSWORD=None REDIS_RESULT_STORAGE_SERVER_HOST=redis REDIS_RESULT_STORAGE_SERVER_PORT=6379 REDIS_RESULT_STORAGE_SERVER_DB=0 REDIS_RESULT_STORAGE_SERVER_PASSWORD=None MEMCACHE_STORAGE_SERVERS=["localhost:11211",] MIXED_STORAGE_FILE_STORAGE=thumbor.storages.no_storage MIXED_STORAGE_CRYPTO_STORAGE=thumbor.storages.no_storage MIXED_STORAGE_DETECTOR_STORAGE=thumbor.storages.no_storage META_CALLBACK_NAME=None DETECTORS=[] FACE_DETECTOR_CASCADE_FILE=haarcascade_frontalface_alt.xml OPTIMIZERS=[] JPEGTRAN_PATH=/usr/bin/jpegtran PROGRESSIVE_JPEG=True FILTERS=["thumbor.filters.brightness", "thumbor.filters.contrast", "thumbor.filters.rgb", "thumbor.filters.round_corner", "thumbor.filters.quality", "thumbor.filters.noise", "thumbor.filters.watermark", "thumbor.filters.equalize", "thumbor.filters.fill", "thumbor.filters.sharpen", "thumbor.filters.strip_icc", "thumbor.filters.frame", "thumbor.filters.grayscale", "thumbor.filters.rotate", "thumbor.filters.format", "thumbor.filters.max_bytes", "thumbor.filters.convolution", "thumbor.filters.blur", "thumbor.filters.extract_focal", "thumbor.filters.no_upscale"] RESULT_STORAGE_EXPIRATION_SECONDS=0 RESULT_STORAGE_FILE_STORAGE_ROOT_PATH=/data/result_storage RESULT_STORAGE_STORES_UNSAFE=False REDIS_QUEUE_SERVER_HOST=redis REDIS_QUEUE_SERVER_PORT=6379 REDIS_QUEUE_SERVER_DB="0" REDIS_QUEUE_SERVER_PASSWORD=None SQS_QUEUE_KEY_ID=None SQS_QUEUE_KEY_SECRET=None SQS_QUEUE_REGION=us-east-1 USE_CUSTOM_ERROR_HANDLING=False ERROR_HANDLER_MODULE=thumbor.error_handlers.sentry ERROR_FILE_LOGGER=None ERROR_FILE_NAME_USE_CONTEXT="False" SENTRY_DSN_URL= TC_AWS_REGION=eu-west-1 TC_AWS_ENDPOINT=None TC_AWS_STORAGE_BUCKET= TC_AWS_STORAGE_ROOT_PATH= TC_AWS_LOADER_BUCKET= TC_AWS_LOADER_ROOT_PATH= TC_AWS_RESULT_STORAGE_BUCKET= TC_AWS_RESULT_STORAGE_ROOT_PATH= TC_AWS_STORAGE_SSE=False TC_AWS_STORAGE_RRS=False TC_AWS_ENABLE_HTTP_LOADER=False TC_AWS_ALLOWED_BUCKETS=False TC_AWS_STORE_METADATA=False ### SOLR ################################################## SOLR_VERSION=5.5 SOLR_PORT=8983 SOLR_DATAIMPORTHANDLER_MYSQL=false SOLR_DATAIMPORTHANDLER_MSSQL=false ### GITLAB ############################################### GITLAB_POSTGRES_INIT=true GITLAB_HOST_HTTP_PORT=8989 GITLAB_HOST_HTTPS_PORT=9898 GITLAB_HOST_SSH_PORT=2289 GITLAB_DOMAIN_NAME=http://localhost GITLAB_ROOT_PASSWORD=laradock GITLAB_HOST_LOG_PATH=./logs/gitlab GITLAB_POSTGRES_HOST=postgres GITLAB_POSTGRES_USER=laradock_gitlab GITLAB_POSTGRES_PASSWORD=laradock_gitlab GITLAB_POSTGRES_DB=laradock_gitlab ### GITLAB-RUNNER ############################################### GITLAB_CI_SERVER_URL=http://localhost:8989 GITLAB_RUNNER_REGISTRATION_TOKEN=<my-registration-token> GITLAB_REGISTER_NON_INTERACTIVE=true ### JUPYTERHUB ############################################### JUPYTERHUB_POSTGRES_INIT=true JUPYTERHUB_POSTGRES_HOST=postgres JUPYTERHUB_POSTGRES_USER=laradock_jupyterhub JUPYTERHUB_POSTGRES_PASSWORD=laradock_jupyterhub JUPYTERHUB_POSTGRES_DB=laradock_jupyterhub JUPYTERHUB_PORT=9991 JUPYTERHUB_OAUTH_CALLBACK_URL=http://laradock:9991/hub/oauth_callback JUPYTERHUB_OAUTH_CLIENT_ID={GITHUB_CLIENT_ID} JUPYTERHUB_OAUTH_CLIENT_SECRET={GITHUB_CLIENT_SECRET} JUPYTERHUB_CUSTOM_CONFIG=./jupyterhub/jupyterhub_config.py JUPYTERHUB_USER_DATA=/jupyterhub JUPYTERHUB_USER_LIST=./jupyterhub/userlist JUPYTERHUB_ENABLE_NVIDIA=false ### IPYTHON ################################################## LARADOCK_IPYTHON_CONTROLLER_IP=127.0.0.1 ### NETDATA ############################################### NETDATA_PORT=19999 ### REDISWEBUI ######################################### REDIS_WEBUI_USERNAME=laradock REDIS_WEBUI_PASSWORD=laradock REDIS_WEBUI_CONNECT_HOST=redis REDIS_WEBUI_CONNECT_PORT=6379 REDIS_WEBUI_PORT=9987 ### MONGOWEBUI ############################################### MONGO_WEBUI_PORT=3000 MONGO_WEBUI_ROOT_URL=http://localhost MONGO_WEBUI_MONGO_URL=mongodb://mongo:27017/ MONGO_WEBUI_INSTALL_MONGO=false ### METABASE ############################################### METABASE_PORT=3030 METABASE_DB_FILE=metabase.db METABASE_JAVA_TIMEZONE=US/Pacific ### IDE ############################################### IDE_THEIA_PORT=987 IDE_WEBIDE_PORT=984 IDE_CODIAD_PORT=985 IDE_ICECODER_PORT=986 ### DOCKERREGISTRY ############################################### DOCKER_REGISTRY_PORT=5000 ### DOCKERWEBUI ############################################### DOCKER_WEBUI_REGISTRY_HOST=docker-registry DOCKER_WEBUI_REGISTRY_PORT=5000 # if have use https proxy please set to 1 DOCKER_REGISTRY_USE_SSL=0 DOCKER_REGISTRY_BROWSE_ONLY=false DOCKER_WEBUI_PORT=8754 ### MAILU ############################################### MAILU_VERSION=latest MAILU_RECAPTCHA_PUBLIC_KEY=<YOUR_RECAPTCHA_PUBLIC_KEY> MAILU_RECAPTCHA_PRIVATE_KEY=<YOUR_RECAPTCHA_PRIVATE_KEY> # Main mail domain MAILU_HTTP_PORT=6080 MAILU_HTTPS_PORT=60443 MAILU_DOMAIN=example.com MAILU_INIT_ADMIN_USERNAME=laradock MAILU_INIT_ADMIN_PASSWORD=laradock # Hostnames for this server, separated with comas MAILU_HOSTNAMES=mail.example.com,alternative.example.com,yetanother.example.com # Postmaster local part (will append the main mail domain) MAILU_POSTMASTER=admin # Set to a randomly generated 16 bytes string MAILU_SECRET_KEY=ChangeMeChangeMe # Choose how secure connections will behave (value: letsencrypt, cert, notls, mail) MAILU_TLS_FLAVOR=cert # Authentication rate limit (per source IP address) MAILU_AUTH_RATELIMIT=10/minute;1000/hour # Opt-out of statistics, replace with "True" to opt out MAILU_DISABLE_STATISTICS=False # Message size limit in bytes # Default: accept messages up to 50MB MAILU_MESSAGE_SIZE_LIMIT=50000000 # Will relay all outgoing mails if configured MAILU_RELAYHOST= # Networks granted relay permissions, make sure that you include your Docker # internal network (default to 172.17.0.0/16) MAILU_RELAYNETS=172.16.0.0/12 # Fetchmail delay MAILU_FETCHMAIL_DELAY=600 # Recipient delimiter, character used to delimiter localpart from custom address part # e.g. localpart+custom@domain;tld MAILU_RECIPIENT_DELIMITER=+ # DMARC rua and ruf email MAILU_DMARC_RUA=admin MAILU_DMARC_RUF=admin # Welcome email, enable and set a topic and body if you wish to send welcome # emails to all users. MAILU_WELCOME=True MAILU_WELCOME_SUBJECT=Welcome to your new email account MAILU_WELCOME_BODY=Welcome to your new email account, if you can read this, then it is configured properly! # Path to the admin interface if enabled MAILU_WEB_ADMIN=/admin # Path to the webmail if enabled MAILU_WEB_WEBMAIL=/webmail # Website name MAILU_SITENAME=Example Mail # Linked Website URL MAILU_WEBSITE=http://mail.example.com # Default password scheme used for newly created accounts and changed passwords # (value: SHA512-CRYPT, SHA256-CRYPT, MD5-CRYPT, CRYPT) MAILU_PASSWORD_SCHEME=SHA512-CRYPT # Expose the admin interface (value: true, false) MAILU_ADMIN=true # Choose which webmail to run if any (values: roundcube, rainloop, none) MAILU_WEBMAIL=rainloop # Dav server implementation (value: radicale, none) MAILU_WEBDAV=radicale ### TRAEFIK ################################################# TRAEFIK_HOST_HTTP_PORT=80 TRAEFIK_HOST_HTTPS_PORT=443 ### MOSQUITTO ################################################# MOSQUITTO_PORT=9001 ### COUCHDB ################################################### COUCHDB_PORT=5984 ### Manticore Search ########################################## MANTICORE_CONFIG_PATH=./manticore/config MANTICORE_API_PORT=9312 MANTICORE_SPHINXQL_PORT=9306 MANTICORE_HTTP_PORT=9308 ### pgadmin ################################################## # use this address http://ip6-localhost:5050 PGADMIN_PORT=5050 PGADMIN_DEFAULT_EMAIL=pgadmin4@pgadmin.org PGADMIN_DEFAULT_PASSWORD=admin
修改.conf在:laradock\nginx\sites
server { listen 80 ; listen [::]:80 ipv6only=on; # For https # listen 443 ssl ; # listen [::]:443 ssl ipv6only=on; # ssl_certificate /etc/nginx/ssl/default.crt; # ssl_certificate_key /etc/nginx/ssl/default.key; server_name localhost; root /var/www/qs_cmf/www; index index.php index.html index.htm; location / { autoindex on; index index.html index.htm index.php; if (!-e $request_filename){ rewrite ^/(.*)$ /index.php/$1 last; } } location ~ [^/]\.php(/|$){ fastcgi_pass php-upstream; fastcgi_index index.php; fastcgi_buffers 16 16k; fastcgi_buffer_size 32k; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_split_path_info ^(.+?\.php)(/.*)$; set $path_info $fastcgi_path_info; fastcgi_param PATH_INFO $path_info; try_files $fastcgi_script_name =404; #fixes timeouts fastcgi_read_timeout 600; include fastcgi_params; } location ~ /\.ht { deny all; } location /.well-known/acme-challenge/ { root /var/www/letsencrypt/; log_not_found off; } error_log /var/log/nginx/qs_cmf_test_error.log; access_log /var/log/nginx/qs_cmf_test_access.log; }
使用docker
创建容器
docker-compose build nginx php-fpm mysql phpmyadmin
启动容器
docker-compose up -d mysql nginx php-fpm
进入容器
docker exec workspace /bin/bash
启动phpmyadmin
docker-compose up -d phpmyadmin
使用项目
https://github.com/tiderjian/qs_cmf
在这里我遇到一个问题,就是使用php artisan migrate会报m没有找到数据库的错误,先在数据库中建立该数据库。
APP_ENV=local DB_CONNECTION=mysql DB_HOST=mysql DB_PORT=3306 DB_DATABASE=qs_cmf DB_USERNAME=root DB_PASSWORD=root