only build mysql db if host is localhost allow nginx multiple domains