Automated docker nginx proxy integrated with letsencrypt. Based on https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # Set up your DOMAIN
  3. if [ $# -eq 0 ]; then
  4. echo "Please inform your domain name to test your proxy."
  5. echo "./test_start.sh $1"
  6. exit 1
  7. else
  8. DOMAIN=$1
  9. fi
  10. # Read your .env file
  11. source .env
  12. # Testing your proxy
  13. if [ -z ${SERVICE_NETWORK+X} ]; then
  14. docker run -d -e VIRTUAL_HOST=$DOMAIN --network=$NETWORK --name test-web httpd:alpine
  15. else
  16. docker run -d -e VIRTUAL_HOST=$DOMAIN --network=$SERVICE_NETWORK --name test-web httpd:alpine
  17. fi
  18. exit 0