composer update
?修復,也可直接將?composer.lock
?刪除,然后再執(zhí)行?composer install
?oauth
?密鑰過早造成,故新的文檔最后才生成該密鑰oauth-private.key
?和?oauth-public.key
?,然后再重新執(zhí)行?php artisan passport:keys
?php artisan passport:client --password
?步驟時,未選擇?admins
?超成的錯誤,可修改?oauth_clients
?表,將?provider
?改成?admins
?aliases
?和?aliases
?添加自己的域名,如下?dsshop.test
?### NGINX Server ##################################
nginx:
build:
context: ./nginx
args:
- PHP_UPSTREAM_CONTAINER=${NGINX_PHP_UPSTREAM_CONTAINER}
- PHP_UPSTREAM_PORT=${NGINX_PHP_UPSTREAM_PORT}
volumes_from:
- applications
volumes:
- ${NGINX_HOST_LOG_PATH}:/var/log/nginx
- ${NGINX_SITES_PATH}:/etc/nginx/sites-available
ports:
- "${NGINX_HOST_HTTP_PORT}:80"
- "${NGINX_HOST_HTTPS_PORT}:443"
depends_on:
- php-fpm
networks:
frontend:
aliases:
- dsshop.test
backend:
aliases:
- dsshop.test
mysql.conf
?中的?ngram_token_size=1
?workspace/Dockerfile
?最后一行添加以下代碼#
#--------------------------------------------------------------------------
# mysql-client
#--------------------------------------------------------------------------
#
USER root
RUN apt update && \
apt install -y mysql-client
docker-compose down
docker-compose build workspace
docker-compose up -d redis nginx mysql
REFRESH_PASSPORT_EXPIRES_IN
?
更多建議: