Skip to content

Instantly share code, notes, and snippets.

@newkind
Last active November 25, 2024 07:28
Show Gist options
  • Save newkind/57eac51737ed6879f047644cb24bb697 to your computer and use it in GitHub Desktop.
Save newkind/57eac51737ed6879f047644cb24bb697 to your computer and use it in GitHub Desktop.
Docker Snippets
# README
# Various snippets to predictably create containers on a NAS
version: "3.8"
services:
web:
image: ghcr.io/hoarder-app/hoarder:latest
container_name: Hoarder
restart: unless-stopped
volumes:
- /volume1/docker/hoarder/data:/data:rw
ports:
- 3000:3000
environment:
MEILI_ADDR: http://meilisearch:7700
BROWSER_WEB_URL: http://chrome:9222
# OPENAI_API_KEY: ...
DATA_DIR: /data
NEXTAUTH_SECRET: <REPLACE>
MEILI_MASTER_KEY: <REPLACE>
chrome:
image: gcr.io/zenika-hub/alpine-chrome:123
container_name: Hoarder-Chrome
restart: unless-stopped
command:
- --no-sandbox
- --disable-gpu
- --disable-dev-shm-usage
- --remote-debugging-address=0.0.0.0
- --remote-debugging-port=9222
- --hide-scrollbars
meilisearch:
image: getmeili/meilisearch:v1.11.1
container_name: Hoarder-Meili
restart: unless-stopped
environment:
MEILI_NO_ANALYTICS: "true"
MEILI_MASTER_KEY: <REPLACE>
volumes:
- /volume1/docker/hoarder/meili:/meili_data:rw
# On newer versions of DSM, we don't need to symlink docker.sock first
# https://github.com/v2tec/watchtower/wiki/Synology-DSM-Installation-Guide
sudo docker run -d \
--name Ouroboros \
-e CRON="0 5 * * *" \
-e LOGLEVEL=info \
-e SELF_UPDATE=true \
-e RUNONCE=false \
-e CLEANUP=true \
-e TZ=Europe/Warsaw \
-v /var/run/docker.sock:/var/run/docker.sock \
--restart unless-stopped \
pyouroboros/ouroboros
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment