Public Repository

Last pushed: 4 months ago
Short Description
ssh apache
Full Description

execution shell example:

#!/bin/bash -e

An example script to run Apache in production.

#DOCKER_ARGU="-it --detach=true --restart=always -P"

#DOCKER_ARGU="-it "
DOCKER_ARGU="--detach=true --restart=always"
SWITCH_ID="05.portal"
NAME="apache"
PORT_PREFIX="2xx.xxx.xxx.xxx:"

#SERVER_ROOT='/ibis/webapps/portal'
ETC_PATH="/deploy/10.run/ibis/02.service/etc/25.httpd/run/"
CONF_PATH="/deploy/10.run/ibis/02.service/etc/25.httpd/setting/"
COMMON_REPOS="/deploy-repos/10.run/ibis/05.setting"
SERVER_WEBAPPS="${SERVER_ROOT}/webapps"
echo "ETC:${ETC_PATH}"

docker stop "${NAME}" || true
sleep 1
docker rm "${NAME}" || true
sleep 1

docker run ${DOCKER_ARGU} -p 10.20.30.41:8022:22 -p ${PORT_PREFIX}80:80 -p ${PORT_PREFIX}443:443 --name "${NAME}" \
--volume "${COMMON_REPOS}:/opt/repos" --volume "${ETC_PATH}:/etc/service/apache" \
--volume "${CONF_PATH}:/etc/apache2" \
kingasiagroup/apache:2.4.18

Docker Pull Command
Owner
kingasiagroup