Apache Trafficserver in a Docker Container
Apache Trafficserver(ATS) is a Highly Scalable , Proxy server and Cache based Servers .For large media distribution its performed well . its also used for CDN based Traffic Controller acts as end point Client Devices. The Docker image for most common use for micro-services in real world to create enlarge cluster to deploy scaling a large containers such as AWS EKS , Kubernetes , Rancher etc ..
Need to had some parameters before to run this container .Choose environment variables for _LIVE LINEAR and VOD platform . So Declared as LIVE LINEAR and VOD environment variables such as PORTS , ORIGIN SERVERS etc .And the basic Configurations and tuning for high traffic handles and it did automatically while start the container will be configure itself .
Need to create custom network such as bridge , overlay and macvlan .Most common use case bridge networking for hosted on single machine. For Overlay , if create as cluster based topology for some cases such as Docker swarm , Kubernetes so on .
First need to build docker image for Container , Use below file to build command like that
docker build -t <tag name> -f DockerFile .
Note : if Need to pull above build image directly from docker hub vasanth3g/apache_trafficserver
docker run -it -d --net -p <port:container:port for live> -p <port:container:port for live> -e HOST="" -e LIVE_PORT="" -e LIVE_ORIGIN="" -e VOD_PORT="" -e VOD_ORIGIN=""**
Note : Need to be create a file for Environment Variables like filename env.list . It contains all environment variables and pass the arguments using --env-file flag.
Specify the Host IP and other parameters in compose file .
docker-compose up -d
Note : Must installed docker-compose binary for more details compose install tutorial
if any queries about this project [email protected]
For more about details visit on Apache Trafficserver.