wget -qO- https://get.docker.com/ | sh
docker pull gyuha/nginx-php-fpm
NGINX_SERVER_NAME="sample.com"
NGINX_ROOT_PATH="/opt/wwwroot"
NGINX_APP_PATH=${NGINX_ROOT_PATH}"/application/public"
NGINX_SSL_PATH="/opt/ssl"
NGINX_SSL_CERTIFICATE="ssl-unified.crt"
NGINX_SSL_CERTIFICATE_KEY="ssl.key"
docker \
run \
--detach \
--env NGINX_SERVER_NAME=${NGINX_SERVER_NAME} \
--volume ${NGINX_ROOT_PATH}:/opt/wwwroot \
--env NGINX_APP_PATH=${NGINX_APP_PATH} \
--name nginx-php-fpm \
--publish 80:80 \
--publish 433:433 \
--restart=always \
gyuha/nginx-php-fpm;
docker \
run \
--detach \
--env NGINX_SERVER_NAME=${NGINX_SERVER_NAME} \
--volume ${NGINX_ROOT_PATH}:/opt/wwwroot \
--env NGINX_APP_PATH=${NGINX_APP_PATH} \
--volume ${NGINX_SSL_PATH}:/etc/nginx/ssl \
--env NGINX_SSL_CERTIFICATE=${NGINX_SSL_CERTIFICATE} \
--env NGINX_SSL_CERTIFICATE_KEY=${NGINX_SSL_CERTIFICATE_KEY} \
--name nginx-php-fpm \
--publish 80:80 \
--publish 433:433 \
--restart=always \
gyuha/nginx-php-fpm;
docker build -t nginx-php-fpm .
without cache
docker build -t nginx-php-fpm --no-cache .
docker exec -i -t [container-id] /bin/bash