54 lines
1 KiB
YAML
54 lines
1 KiB
YAML
|
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
|
||
|
image: redis:latest
|
||
|
container_name: sharelatex-redis
|
||
|
networks:
|
||
|
- net
|
||
|
volumes:
|
||
|
- redis:/data
|