This was what happened:
I created a service, and environments were read up from the docker image. Added few environments related to haproxy. Later when I built new image, I added a new environment variable in the docker file, however, when redeploying the service those variables does not automatically get added. Workaround is that the environment variables are added manually.
Is this expected behaviour?