Docker services that you want exposed to outside of the container can’t be resolved to localhost, they must instead be resolved down to 0.0.0.0 so services outside of the container can access them. However, if you set your domain as 0.0.0.0:80, you will see the following error:

Because of this, you must use the bind directive.

:80 {
	bind 0.0.0.0
	respond "Hello, world!"
}