Skip to content

Latest commit

 

History

History
139 lines (100 loc) · 1.91 KB

INSTALL.md

File metadata and controls

139 lines (100 loc) · 1.91 KB

Installation

Table of Contents

Laradock

git clone https://github.com/laradock/laradock.git
cd laradock

라라독 설정하기

cp -a ../laradock-example/. ../laradock/

호스트 파일에 도메인 추가하기 (윈도우)

$ vi c://Windows/System32/drivers/etc/hosts
#
127.0.0.1  localhost
127.0.0.1  app.test
...
::1 localhost

라라독 실행하기

docker-compose up -d apache2 mysql workspace

의존성 패키지 설치하기

docker-compose exec --user=laradock workspace bash
cd application && composer install
docker-compose up -d --build apache2

브라우저 접속하기

Laradock SSL for windows

SSL 설치하기

Edit laradock/.env

APACHE_INSTALL_HTTP2=true

SSL 인증서 발급하기

choco install mkcert

로컬을 인증된 발급기관으로 추가하기

mkcert -install

SSL 인증서 발급하기

mkcert app.test

Edit laradock\apache2\sites\app.test.conf

<VirtualHost *:443>
    ...
    SSLEngine on
    SSLCertificateFile /etc/apache2/ssl/app.test.pem
    SSLCertificateKeyFile /etc/apache2/ssl/app.test-key.pem
    ...
</VirtualHost>

WebPack 사용시

{
    "devServer": {
        "https": {
            "key": "./app.test-key.pem",
            "cert": "./app.test.pem"
        }
    }
}

브라우저 접속하기

PHP Version Change

Edit .env file

PHP_VERSION=
docker-compose build php-fpm
docker-compose build workspace
docker-compose down
docker-compose up -d apache2 mysql workspace
phpinfo();