mirror of
https://github.com/fergalmoran/docker-nginx.git
synced 2025-12-24 02:37:41 +00:00
Initial commit
This commit is contained in:
22
test_start.sh
Executable file
22
test_start.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Set up your DOMAIN
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "Please inform your domain name to test your proxy."
|
||||
echo "./test_start.sh $1"
|
||||
exit 1
|
||||
else
|
||||
DOMAIN=$1
|
||||
fi
|
||||
|
||||
# Read your .env file
|
||||
source .env
|
||||
|
||||
# Testing your proxy
|
||||
if [ -z ${SERVICE_NETWORK+X} ]; then
|
||||
docker run -e VIRTUAL_HOST=$DOMAIN --network=$NETWORK --name test-web httpd:alpine
|
||||
else
|
||||
docker run -e VIRTUAL_HOST=$DOMAIN --network=$SERVICE_NETWORK --name test-web httpd:alpine
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user