server-setup/Docker/sharelatex/docker-compose.yml

54 lines
1 KiB
YAML
Raw Normal View History

2022-06-29 13:37:27 +02:00
version: "3.9"
networks:
net:
external: false
volumes:
redis:
mongo-configdb:
services:
sharelatex:
image: sharelatex/sharelatex:2.7.0
container_name: sharelatex
restart: unless-stopped
depends_on:
sharelatex-db:
condition: service_healthy
sharelatex-redis:
condition: service_started
ports:
- "127.0.0.1:8080:80"
networks:
- net
volumes:
- ./sharelatex_data:/var/lib/sharelatex
- ./sharelatex_packages:/usr/local/texlive
env_file:
- ./.env
sharelatex-db:
restart: unless-stopped
image: mongo:4.0
container_name: sharelatex-db
networks:
- net
volumes:
- ./db:/data/db
- mongo-configdb:/data/configdb
healthcheck:
test: echo 'db.stats().ok' | mongo localhost:27017/test --quiet
interval: 10s
timeout: 10s
retries: 5
sharelatex-redis:
restart: unless-stopped
2022-06-30 08:20:53 +02:00
image: redis:6.2.6
2022-06-29 13:37:27 +02:00
container_name: sharelatex-redis
networks:
- net
volumes:
- redis:/data