Created
December 21, 2022 11:29
-
-
Save nbigot/bc786c9bb2ffc42cb243f68acc4325a9 to your computer and use it in GitHub Desktop.
How to run tinyproxy server on an aws ec2 instance at startup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo yum update -y | |
sudo yum install -y docker | |
sudo usermod -a -G docker ec2-user | |
id ec2-user | |
newgrp docker | |
sudo systemctl enable docker.service | |
sudo systemctl start docker.service | |
docker run -d --name=tinyproxy -p 8888:8888 --env BASIC_AUTH_USER=yourLOGIN --env BASIC_AUTH_PASSWORD=yourSECRETpassword --env TIMEOUT=60 monokal/tinyproxy:latest ANY |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment