From 7846372ee7d55dccea729d753c966a950df955d6 Mon Sep 17 00:00:00 2001 From: Masoud Baharlouei Date: Tue, 8 Jul 2025 10:14:41 +0200 Subject: [PATCH] updated scripts --- .gitignore | 12 +++++++ jellyfin/docker-compose.yaml | 22 ++++++++++++ openwebui/docker-compose.yaml | 16 +++++++++ overleaf/docker-compose.yaml | 60 +++++++++++++++++++++++++++++++++ owui-ollama/docker-compose.yaml | 18 ++++++++++ 5 files changed, 128 insertions(+) create mode 100644 .gitignore create mode 100644 jellyfin/docker-compose.yaml create mode 100644 openwebui/docker-compose.yaml create mode 100644 overleaf/docker-compose.yaml create mode 100644 owui-ollama/docker-compose.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f43e652 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +# Ignore all contents of the folder + +openwebui/* +!openwebui/docker-compose.yaml + +overleaf/* +!overleaf/docker-compose.yaml + +owui-ollama/* +!owui-ollama/docker-compose.yaml + + diff --git a/jellyfin/docker-compose.yaml b/jellyfin/docker-compose.yaml new file mode 100644 index 0000000..5625e7f --- /dev/null +++ b/jellyfin/docker-compose.yaml @@ -0,0 +1,22 @@ +version: "3.7" + +services: + + jellyfin: + image: linuxserver/jellyfin + restart: unless-stopped + #hostname: "${DEVICE_HOSTNAME}" + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Paris + volumes: + - ./config:/config + - ../media:/media +# - /media/umbrl/GPass_Serie:/hard_Drive +# - /media/umbrl/Videos:/hdd_movie_all + ports: + # Service auto-discovery + - 7359:7359/udp + - 8096:8096 + diff --git a/openwebui/docker-compose.yaml b/openwebui/docker-compose.yaml new file mode 100644 index 0000000..3ee34d4 --- /dev/null +++ b/openwebui/docker-compose.yaml @@ -0,0 +1,16 @@ +name: openwebui +services: + open-webui: + ports: + - 3033:8080 + extra_hosts: + - host.docker.internal:host-gateway + volumes: + - ./open-webui:/app/backend/data + container_name: open-webui + restart: always + image: ghcr.io/open-webui/open-webui:main +volumes: + open-webui: + external: true + name: open-webui diff --git a/overleaf/docker-compose.yaml b/overleaf/docker-compose.yaml new file mode 100644 index 0000000..b0921e1 --- /dev/null +++ b/overleaf/docker-compose.yaml @@ -0,0 +1,60 @@ +volumes: + web: + mongo: + redis: + mongo-init-replica: + +services: + web: + image: sharelatex/sharelatex:4.2.3@sha256:6c6498de22775f1227eed7cf472c764aa851f0fe5b9e640d989ea8a90837159e + depends_on: + mongo: + condition: service_healthy + redis: + condition: service_started + links: + - mongo + - redis + ports: + - 8020:80 + volumes: + - ./data/sharelatex:/var/lib/sharelatex + environment: + SHARELATEX_APP_NAME: Overleaf + SHARELATEX_MONGO_URL: mongodb://mongo/sharelatex + SHARELATEX_REDIS_HOST: redis + REDIS_HOST: redis + ENABLED_LINKED_FILE_TYPES: "project_file,project_output_file" + ENABLE_CONVERSIONS: "true" + EMAIL_CONFIRMATION_DISABLED: "true" + TEXMFVAR: /var/lib/sharelatex/tmp/texmf-var + + mongo: + image: mongo:4.4@sha256:52c42cbab240b3c5b1748582cc13ef46d521ddacae002bbbda645cebed270ec0 + command: "--replSet overleaf" + expose: + - 27017 + volumes: + - ./data/mongo:/data/db + healthcheck: + test: echo 'db.stats().ok' | mongo localhost:27017/test --quiet + interval: 10s + timeout: 10s + retries: 5 + + redis: + image: redis:6.2@sha256:5610a8ffeaf386ecc7b6c8f070662a7a9d01bc7eafe237152a7d16e05b84afc9 + expose: + - 6379 + volumes: + - ./data/redis:/data + + mongo-init-replica: + image: mongo:4.4 + depends_on: + - mongo + entrypoint: > + bash -c " + until mongo --host mongo --eval 'print(\"waiting for mongo\")'; do sleep 2; done; + mongo --host mongo --eval 'rs.initiate({_id: \"overleaf\", members: [{_id: 0, host: \"mongo:27017\"}]})'" + restart: "on-failure" \ No newline at end of file diff --git a/owui-ollama/docker-compose.yaml b/owui-ollama/docker-compose.yaml new file mode 100644 index 0000000..d99ef79 --- /dev/null +++ b/owui-ollama/docker-compose.yaml @@ -0,0 +1,18 @@ +name: obwi-with-ollama +services: + open-webui: + ports: + - 3034:8080 + volumes: + - ./ollama:/root/.ollama + - ./open-webui:/app/backend/data + container_name: open-webui + restart: always + image: ghcr.io/open-webui/open-webui:ollama +volumes: + ollama: + external: true + name: ollama + open-webui: + external: true + name: open-webui