Docker Community Forums

Share and learn in the Docker community.

Docker Sharelatex

Hi community,

I am trying to launch the sharelatex in docker. Below is the docker-compose code :

version: '3'
services:
    sharelatex:
        restart: always
        image: sharelatex/sharelatex
        container_name: sharelatex
        depends_on:
            - mongo
            - redis
        privileged: true
        ports:
            - 127.0.0.1:7777:80
        links:
            - mongo
            - redis
        volumes:
            - sharelatex_data:/var/lib/sharelatex
            - /var/run/docker.sock:/var/run/docker.sock
        environment:
            SHARELATEX_MONGO_URL: mongodb://mongo/sharelatex
            SHARELATEX_REDIS_HOST: redis
            
    mongo:
        restart: always
        image: mongo
        container_name: mongo
        expose:
            - 27017
        volumes:
            - mongo_data:/data/db

    redis:
        restart: always
        image: redis
        container_name: redis
        expose:
            - 6379
        volumes:
            - redis_data:/data
volumes:
    sharelatex_data:
    redis_data:
    mongo_data:

After docker-compose up I wanted to start the sharelatex by opening 127.0.0.1:7777 in browser. However it says that 127.0.0.1 refused the connection. Anyone has an idea where this error comes from ?