我正在尝试在docker中启动sharelatex。下面是docker-compose代码:
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:
泊坞窗组成后,我想通过在浏览器中打开127.0.0.1:7777来启动sharelatex。但是,它说127.0.0.1拒绝连接。任何人都知道此错误来自何处?