Adds overleaf

This commit is contained in:
2026-06-02 22:38:19 +02:00
parent a8beecdbd5
commit 3ad5df938e
12 changed files with 117 additions and 4 deletions
+2
View File
@@ -0,0 +1,2 @@
[Volume]
VolumeName=overleaf-data
@@ -0,0 +1,26 @@
[Unit]
Description=Overleaf MongoDB container
[Container]
AutoUpdate=registry
Command="--replSet overleaf"
ContainerName=overleaf-database
Environment=MONGO_INITDB_DATABASE=sharelatex
Environment=TZ=Europe/Zurich
HealthCheck="echo 'db.stats().ok' | mongosh localhost:27017/test --quiet"
HealthCheckInterval=10s
HealthCheckTimeout=10s
HealthCheckRetries=5
Image=docker.io/mongo:8.0
Label=io.containers.autoupdate=registry
Pod=overleaf.pod
StartWithPod=true
Timezone=Europe/Zurich
Volume=overleaf-database-data.volume:/data/db
Volume=/var/mnt/nas/containers/overleaf/storage/shared/mongodb-init-replica-set.js:/docker-entrypoint-initdb.d/mongodb-init-replica-set.js
[Service]
Restart=always
[Install]
WantedBy=default.target
@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/overleaf/storage/redis-config
Driver=local
Options=bind
Type=none
VolumeName=overleaf-redis-config
@@ -0,0 +1,2 @@
[Volume]
VolumeName=overleaf-redis-data
@@ -0,0 +1,20 @@
[Unit]
Description=Overleaf Redis container
[Container]
AutoUpdate=registry
ContainerName=overleaf-redis
Environment=TZ=Europe/Zurich
Exec=/bin/sh -c 'redis-server --appendonly yes --requirepass $${REDIS_PASSWORD}'
Image=docker.io/redis:latest
Label=io.containers.autoupdate=registry
Pod=overleaf.pod
StartWithPod=true
Timezone=Europe/Zurich
Volume=overleaf-redis-data.volume:/data
[Service]
Restart=always
[Install]
WantedBy=default.target
+44
View File
@@ -0,0 +1,44 @@
[Unit]
Description=Overleaf container
After=overleaf-database.container
After=overleaf-redis.container
Requires=overleaf-database.container
Requires=overleaf-redis.container
[Container]
AutoUpdate=registry
ContainerName=overleaf
Environment=EMAIL_CONFIRMATION_DISABLED=true
Environment=ENABLE_CONVERSIONS=true
Environment=ENABLED_LINKED_FILE_TYPES=project_file,project_output_file
Environment=OVERLEAF_ADMIN_EMAIL=guillaume@gtache.ch
Environment=OVERLEAF_ALLOW_ANONYMOUS_READ_AND_WRITE_SHARING=false
Environment=OVERLEAF_ALLOW_PUBLIC_ACCESS=false
Environment=OVERLEAF_APP_NAME=Overleaf Community Edition
Environment=OVERLEAF_DISABLE_LINK_SHARING=false
Environment=OVERLEAF_MONGO_URL=mongodb://overleaf-database/sharelatex
Environment=OVERLEAF_REDIS_HOST=overleaf-redis
Environment=OVERLEAF_REDIS_PORT=6379
Environment=OVERLEAF_SITE_URL=overleaf.gtache.ch
Environment=OVERLEAF_TRUSTED_PROXY_IPS="192.168.0.0/16 172.16.0.0/12 169.254.0.0/16 10.0.0.0/8"
Environment=EMAIL_CONFIRMATION_DISABLED=true
Environment=ENABLE_CRON_RESOURCE_DELETION=true
Environment=MONGO_URL=mongodb://overleaf-database/sharelatex
Environment=REDIS_HOST=overleaf-redis
Environment=REDIS_PORT=6379
Image=quay.io/sharelatex/sharelatex:latest
Label=io.containers.autoupdate=registry
Pod=overleaf.pod
Secret=overleaf-redis-password,type=env,target=OVERLEAF_REDIS_PASS
Secret=overleaf-session-secret,type=env,target=OVERLEAF_SESSION_SECRET
Secret=overleaf-redis-password,type=env,target=REDIS_PASSWORD
StartWithPod=true
StopTimeout=60
Timezone=Europe/Zurich
Volume=overleaf-data.volume:/var/lib/overleaf
[Service]
Restart=always
[Install]
WantedBy=default.target
+3
View File
@@ -0,0 +1,3 @@
[Pod]
PodName=overleaf
PublishPort=9024:80