start
This commit is contained in:
33
commands/01-start-proxy_server.sh
Executable file
33
commands/01-start-proxy_server.sh
Executable file
@@ -0,0 +1,33 @@
|
||||
#! /bin/bash
|
||||
source .env
|
||||
|
||||
proxy_path=${APPS_VOLUME}/proxy
|
||||
proxy_data=${proxy_path}/data
|
||||
proxy_letsencrypt=${proxy_path}/letsencrypt
|
||||
|
||||
for p in "${proxy_data}" "${proxy_letsencrypt}"; do
|
||||
if ! ls ${p} >/dev/null 2>&1; then
|
||||
echo "Creating ${p} directory..."
|
||||
mkdir -p ${p}
|
||||
else
|
||||
echo "directory exists ${p}"
|
||||
fi
|
||||
done
|
||||
|
||||
podman run -d --replace \
|
||||
--name proxy_server \
|
||||
--hostname proxy_server \
|
||||
--network container-bridge \
|
||||
--tz=local \
|
||||
-p ${PROXY_PORT}:81 \
|
||||
-p ${PROXY_HTTP_PORT}:80 \
|
||||
-p ${PROXY_HTTPS_PORT}:443 \
|
||||
-v ${proxy_data}:/data \
|
||||
-v ${proxy_letsencrypt}:/etc/letsencrypt \
|
||||
--health-cmd="/usr/bin/check-health" \
|
||||
--health-interval=10s \
|
||||
--health-timeout=3s \
|
||||
-e DISABLE_IPV6=true \
|
||||
-e INITIAL_ADMIN_EMAIL=${ADMIN_EMAIL} \
|
||||
-e INITIAL_ADMIN_PASSWORD=${ADMIN_PASSWORD} \
|
||||
docker.io/jc21/nginx-proxy-manager:latest
|
||||
Reference in New Issue
Block a user