Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

1.2 KB
Raw Blame
# documentation: https://docs.onetimesecret.com
# slogan: Share sensitive information securely with self-destructing links that are only viewable once.
# category: security
# tags: auth,password,secret,secure
# logo: svgs/onetimesecret.svg
# port: 3000

services:
  onetimesecret:
    image: onetimesecret/onetimesecret:latest
    environment:
      - SERVICE_URL_ONETIMESECRET_3000
      - AUTH_AUTOVERIFY=${AUTH_AUTOVERIFY:-true}
      - AUTH_SIGNUP=${AUTH_SIGNUP:-true}
      - COLONEL=${COLONEL:[email protected]}
      - HOST=${HOST:-localhost}
      - REDIS_URL=redis://:${SERVICE_PASSWORD_REDIS}@redis:6379/0
      - SECRET=${SERVICE_PASSWORD_ONETIMESECRET}
      - SSL=${SSL:-false}
      - RACK_ENV=production
    depends_on:
      redis:
        condition: service_healthy
    healthcheck:
      test:
        - CMD
        - ruby
        - "-rnet/http"
        - "-e"
        - "exit(Net::HTTP.get_response(URI('http://localhost:3000')).is_a?(Net::HTTPSuccess) ? 0 : 1)"
      interval: 30s
      timeout: 10s
      retries: 3

  redis:
    image: redis:8-alpine
    command: redis-server --requirepass ${SERVICE_PASSWORD_REDIS}
    healthcheck:
      test:
        - CMD
        - redis-cli
        - ping
      interval: 30s
      timeout: 10s
      retries: 3