Due to the quarkus.smallrye-openapi.servers is a runtime property you may directly in application.properties file set it to any runtime env variable like
quarkus.smallrye-openapi.servers=${HOSTNAME:localhost}
where localhost is just a fallback value in case HOSTNAME env missing.