include sharelatex docker-compose file
This commit is contained in:
parent
59eae60561
commit
dc3a7076eb
2 changed files with 92 additions and 0 deletions
53
Docker/sharelatex/docker-compose.yml
Normal file
53
Docker/sharelatex/docker-compose.yml
Normal file
|
@ -0,0 +1,53 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue