- This repository will provide you Docker proxy image which will dynamicly genrate nginx configration for proxy_pass based on Ports you expose
- It will provide Nginx status page on diffrent port if you expose port 8888
- Install Docker.
- Install docker-compose.
- Clone this repository
$ cd <root of repository>
$ docker build -t proxy:latest .$ docker-compose up -dOnce your yask is in running state try open URL of Status
to create a docker image go to AWS console > EC2 Container Service > Repositories
$ cd <root of repository>
$ docker build -t proxy:latest .$ aws ecr get-login --region <aws-region>This will provide you a long login command for AWS (Note : this will expiry after 8 hrs so you need to relogin)
$ docker tag proxy:latest <ecr-reposiotory-url>:latest$ docker push <ecr-reposiotory-url>:latestsample file for the ECS task defination is provided in the folder ecs inside this repostitory, you need to change some value in that defination
"containerDefinitions": [{
"volumesFrom": [],
"memory": 1024, <<< change the RAM based on your requirment
"extraHosts": null,
"dnsServers": null,
"disableNetworking": null,
"dnsSearchDomains": null, "workingDirectory": null,
"readonlyRootFilesystem": null,
"image": "123456789123.dkr.ecr.us-east-1.amazonaws.com/proxy:latest", <<< change image with URL of your own ECR image
"command": null,once you made all require change go to AWS console > EC2 Container Service > Task Definitions and Create a Task Definition
to create a service go to Newely created task defination and from Actions menu create service
Fill below value based on you requirment and Create Service
Cluster
Service name
Number of tasks
Minimum healthy percent
Maximum percentOnce Done new service will be added with number of task in your selected cluster
Once your yask is in running state try open URL of Status