I want to create global service which requires a env var PUBLIC_IP, expose to server side to discover them.
So is there a way to create such global service, such as:
services:
agent:
image: private/agent
ports:
- 80:80
environment:
PEER_ADDRESS: ${host.ip} # ip address of rancher host