diff --git a/Dockerfile b/Dockerfile index b5f20636b..9fe5ddb53 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,3 +11,6 @@ RUN groupadd -r node \ USER node EXPOSE 5000 +EXPOSE 5222 + +VOLUME [ "/usr/src/app/uploads" ] diff --git a/docker-compose.yml b/docker-compose.yml index eb196550b..a2a72b2b0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,10 +8,13 @@ app: build: . links: - db - environment: - - LCB_DATABASE_URI=mongodb://db/letschat ports: - 5000:5000 + - 5222:5222 + environment: + - LCB_DATABASE_URI=mongodb://db/letschat + - LCB_XMPP_ENABLE=true + - LCB_XMPP_PORT=5222 # Mongo Database db: diff --git a/media/js/views/room.js b/media/js/views/room.js index 8f5349089..a3e00b385 100644 --- a/media/js/views/room.js +++ b/media/js/views/room.js @@ -354,6 +354,8 @@ text: $textarea.val() }); $textarea.val(''); + this.scrollLocked = true; + this.scrollMessages(); }, addMessage: function(message) { // Smells like pasta