Skip to content

masl/undershorts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build docker

undershorts

Brevity is the soul of wit - Undershorts is a simple URL shortener

Deployment

A containerized solution for undershorts with redis may look like this

version: "3"
services:
  undershorts_redis:
    image: "redis"
    container_name: "undershorts_redis"
    command: sh -c "redis-server --requirepass PASSWORD --appendonly yes"
    volumes:
      - "./redis/db/:/data/"
    networks:
      - "undernet"

  undershorts:
    image: "ghcr.io/masl/undershorts:latest"
    container_name: "undershorts"
    environment:
      UNDERSHORTS_REDIS_URL: "redis://:PASSWORD@undershorts_redis:6379"
      UNDERSHORTS_WEB_ADDRESS: "0.0.0.0:8080"
    networks:
      - "undernet"
    depends_on:
      - "undershorts_redis"

networks:
  undernet:

Environment Variables

Environment Variable Default Value
UNDERSHORTS_REDIS_URL redis://:PASSWORD@undershorts_redis:6379
UNDERSHORTS_WEB_ADDRESS 0.0.0.0:8000