This adds ENV['KAMAL_SERVICE'] to the hooks so that there isn't any additional processing that needs to be done within your hooks to reference the service, similar to the existing ENV['KAMAL_VERSION']. An example use for this would be the docker-setup hook so that you can easily define your Docker network to be attached to your service docker network create #{ENV['KAMAL_SERVICE']}-#{ENV['KAMAL_DESTINATION']}" or just docker network create #{ENV['KAMAL_SERVICE']}.
This adds
ENV['KAMAL_SERVICE']
to the hooks so that there isn't any additional processing that needs to be done within your hooks to reference the service, similar to the existingENV['KAMAL_VERSION']
. An example use for this would be the docker-setup hook so that you can easily define your Docker network to be attached to your servicedocker network create #{ENV['KAMAL_SERVICE']}-#{ENV['KAMAL_DESTINATION']}"
or justdocker network create #{ENV['KAMAL_SERVICE']}
.