Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions blueprints/cut/cut.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions blueprints/cut/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
services:
cut:
image: ghcr.io/mendylanda/cut:latest
restart: unless-stopped
depends_on:
redis:
condition: service_healthy
environment:
# Injected by Dokploy from template.toml (generated strong password).
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
# Bundled Redis below, private to the project network.
- REDIS_URL=redis://redis:6379
# Expose the container port only; Dokploy maps the domain to it.
ports:
- 3000
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3000/"]
interval: 10s
timeout: 5s
retries: 10

redis:
image: redis:7-alpine
restart: unless-stopped
# appendonly = durable across restarts; noeviction because this is Cut's
# primary datastore, not a cache (don't drop links under memory pressure).
command: redis-server --appendonly yes --maxmemory-policy noeviction
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10

volumes:
redis-data:
14 changes: 14 additions & 0 deletions blueprints/cut/template.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[variables]
main_domain = "${domain}"
admin_password = "${password:24}"

[config]
env = [
"ADMIN_PASSWORD=${admin_password}",
]
mounts = []

[[config.domains]]
serviceName = "cut"
port = 3000
host = "${main_domain}"
16 changes: 16 additions & 0 deletions meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -1680,6 +1680,22 @@
"self-hosted"
]
},
{
"id": "cut",
"name": "Cut",
"version": "0.1.0",
"description": "A tiny, self-hosted URL shortener — short links that are entirely yours, with per-link passwords, expiries, and click limits.",
"logo": "cut.svg",
"links": {
"github": "https://github.com/MendyLanda/cut",
"website": "https://github.com/MendyLanda/cut",
"docs": "https://github.com/MendyLanda/cut#readme"
},
"tags": [
"url-shortener",
"links"
]
},
{
"id": "cyberchef",
"name": "CyberChef",
Expand Down
Loading