YOURLS 1.9 with SQLite
395
Based on Flameborn/yourls-sqlite.
Takes the same arguments as the official container, but ignores the ones that are unnecessary.
Additionally there is a /var/www/html/user/sqlite volume, you should either bind to the local fs, or at least name.
The YOURLS_DB_NAME must be defined, and must be prepended with a sqlite/ (due to simplifying and removing the custom docker-entrypoint.sh), otherwise the database is not written into the persistent volume, and data will be lost on restarting the container!
If you have updated this container, and your data seems to be lost: No worries, it's still there!
Prepend sqlite/ to your existing YOURLS_DB_NAME, or, if you have not defined a custom YOURLS_DB_NAME define it as YOURLS_DB_NAME=sqlite/yourls.
docker run --name yourls-but-sqlite \
-e YOURLS_SITE="https://exam.pl" \
-e YOURLS_DB_NAME="sqlite/yourls" \
-e YOURLS_USER="myuser" \
-e YOURLS_PASS="secretpassword" \
-v yourls-sqlite:/var/www/html/user/sqlite \
-p 80:80 -d huynhduckhoan/yourls-sqlite:1.9.1-fpm-alpine
MIT-Licensed.
Content type
Image
Digest
sha256:a16cb9bab…
Size
162 MB
Last updated
about 4 years ago
docker pull huynhduckhoan/yourls-sqlite