반응형
vi /var/www/html/laravel-api/.env # 이 부분을 자신의 환경에 맞게 수정한다. # mysql 또는 mariadb 서버는 DB_CONNECTION을 mysql로 한다. DB_CONNECTION=mysql # DB 서버가 windows docker container로 있어서 host.docker.internal 사용 DB_HOST=host.docker.internal DB_PORT=3306 DB_DATABASE=laravel_api DB_USERNAME=root DB_PASSWORD=password :wq
The host networking driver only works on Linux hosts, and is not supported on Docker Desktop for Mac, Docker Desktop for Windows, or Docker EE for Windows Server. You can also use a host network for a swarm service, by passing --network host to the docker service create command. In this case, control traffic (traffic related to managing the swarm and the service) is still sent across an overlay ..