Automated docker nginx proxy integrated with letsencrypt. Based on https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_start_ssl.sh 549B

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