mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
refactor: rewrite yourls_dev to match template conventions
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user