Luzifer / ots

One-Time-Secret sharing platform with a symmetric 256bit AES encryption in the browser
https://ots.fyi
Apache License 2.0
472 stars 69 forks source link

Docker compose #188

Closed ipod86 closed 4 months ago

ipod86 commented 4 months ago

Hello,

is there a way to rewrite docker compose the so that ots is loaded from Docker Hub rather than git?

This makes it easier to keep ots up to date (e.g. with watchtower).

ipod86 commented 4 months ago

Got it:

version: "3.8" services: app: image: luzifer/ots:latest restart: always environment:

Optional, see "Customization" in README

  # CUSTOMIZE: '/etc/ots/customize.yaml'
  # See README for details
  REDIS_URL: redis://redis:6379/0
  # 168h = 1w
  SECRET_EXPIRY: "604800"
  # "mem" or "redis" (See README)
  STORAGE_TYPE: redis
depends_on:
  - redis
ports:
  - 3000:3000

redis: image: redis:alpine restart: always volumes: