Brevity is the soul of wit - Undershorts is a simple URL shortener
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 Variable | Default Value |
---|---|
UNDERSHORTS_REDIS_URL |
redis://:PASSWORD@undershorts_redis:6379 |
UNDERSHORTS_WEB_ADDRESS |
0.0.0.0:8000 |