diff --git a/db/db.js b/db/db.js
index bee4b2ff5cbcab71c8863720c335ba48dd865da3..67563ca5776465777f7f77529de16d5134af3c78 100644
--- a/db/db.js
+++ b/db/db.js
@@ -1,6 +1,8 @@
 var mongoose = require('mongoose');
 
-mongoose.connect('mongodb://localhost/szobatinder');
+const db_url = process.env.DB_HOST ? 'mongodb://' + process.env.DB_HOST + '/szobatinder' : 'mongodb://localhost/szobatinder'
+
+mongoose.connect(db_url);
 
 // Users
 //------
diff --git a/index.js b/index.js
index 35c70ef0ef6fcea7dd1d1d672f2eb2124c8655bf..7595682d7a36cdc9b0bec521b680194884d33e47 100644
--- a/index.js
+++ b/index.js
@@ -66,7 +66,7 @@ app.post('/profile', authMW(), profileeditMW());
 app.get('/deleteprofile', authMW(), profiledeleteMW());
 
 const server_port = 3000;
-const server_domain = 'localhost';
+const server_domain = '0.0.0.0';
 app.listen(server_port, server_domain, function () {
     console.log(`This server is listening on http://${server_domain}:${server_port}`);
 });
\ No newline at end of file