refactor: rewrite yourls_dev to match template conventions

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
code
2026-07-15 02:39:22 +00:00
co-authored by Claude Fable 5
parent 60ce765aa2
commit b542905f31
5 changed files with 135 additions and 45 deletions
+50
View File
@@ -0,0 +1,50 @@
# YOURLS URL Shortener
services:
yourls:
image: ${YOURLS_IMAGE:-yourls:latest}
restart: ${YOURLS_RESTART:-unless-stopped}
volumes:
- ${VOL_PATH:-/data}/yourls/html:/var/www/html
environment:
- YOURLS_DB_HOST=yourls-db
- YOURLS_DB_USER=${YOURLS_DB_USER:-yourls}
- YOURLS_DB_PASS=${YOURLS_DB_PASSWORD:-changeme}
- YOURLS_DB_NAME=${YOURLS_DB_NAME:-yourls}
- YOURLS_SITE=${YOURLS_SITE:-http://localhost:8080}
- YOURLS_USER=${YOURLS_USER:-admin}
- YOURLS_PASS=${YOURLS_PASS:-changeme}
ports:
- "${YOURLS_PORT:-8080}:80"
networks:
- proxy
- internal
depends_on:
- yourls-db
yourls-db:
image: ${MARIADB_IMAGE:-mariadb:11}
restart: ${YOURLS_RESTART:-unless-stopped}
volumes:
- ${VOL_PATH:-/data}/yourls/db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${YOURLS_MYSQL_ROOT_PASSWORD:-changeme-root}
- MYSQL_DATABASE=${YOURLS_DB_NAME:-yourls}
- MYSQL_USER=${YOURLS_DB_USER:-yourls}
- MYSQL_PASSWORD=${YOURLS_DB_PASSWORD:-changeme}
networks:
- internal
networks:
proxy:
external: true
internal:
driver: bridge