FerryDocs
ConceptsServices

Internal hostnames

On the private network, each service and each datastore has its name as its hostname.

Edit on GitHub
Private network "ferry"api:3000webapiport 3000Workeror a cron job runDatastore

All containers of a server share one private Docker network.

1 / 3

Each service is on the with its own name. Each is there with the name of the datastore.

Call another service

From each service or , another service is at <name>:<port>.

From inside a container
curl http://api:3000/health

Find the port

The port is the container port of the service that you call. ferry show api prints it as Internal address.

The ${{service.api.hostport}} gives the . Thus you do not write the port in your code.

Terminal
ferry env set web 'API_URL=http://${{service.api.hostport}}'

On this page