- Yourls - 1.8.1
- timezones
- 302-instead
- dont-track-admins
- fallback_url_config
- force-lowercase
- mobile-detect
- dont-log-bots
- dont-log-crawler
- dont-log-health-checker
To run YOURLS service with customized config
$ vim env.mysql
$ vim env.yourls
$ docker-compose up [--build]
- Default Login Page: http://localhost/admin/index.php
- Default Username: see env.yourls
- Default Password: see env.yourls
Execute backup.sh
to get regular backup
Make sure there is no container running
$ docker-compose down
$ docker ps
Cleanup "mysql-data" volume
$ docker volume rm yourls_mysql-data
Make sure there is no sql file under "mysql-initdb" volume
$ rm -vf ./volumes/docker-entrypoint-initdb.d/*
Move the backup sql file to "mysql-initdb" volume
$ cp -vf ./mysql-dump-YYYYMMDD-hhmmss.sql ./volumes/docker-entrypoint-initdb.d/
$ docker-compose up -d
simply modify the variable configures in `env.*` before run
WebUI may show Could not write file .htaccess in YOURLS root directory.
at first time deployment, it is actually a false alarm, please ignore it.
WebUI may show Could not auto-encrypt passwords.
when log into admin page,
it is Docker specific limitation, see YOURLS wiki for more detail