Skip to content

andalugeeks/docker-yourls

 
 

Repository files navigation

Dockerize YOURLS - Your Own URL Shortener

Docker Stars Docker Pulls Docker Automated

Integrated Items

Integrated Plugins

Usage

To run YOURLS service with customized config

$ vim env.mysql
$ vim env.yourls
$ docker-compose up [--build]

Dashboard

Advanced

Create database backup

Execute backup.sh to get regular backup

Restore backup from backup file

Make sure there is no container running

$ docker-compose down
$ docker ps

Cleanup volumes/var/lib/mysql/*

$ rm -vrf volumes/var/lib/mysql/*

Make sure there is no sql file under volums/docker-entrypoint-initdb.d/

$ ls -l volumes/docker-entrypoint-initdb.d/

Move the backup sql file to volumes/docker-entrypoint-initdb.d/

$ cp mysql-dump-YYYYMMDD-hhmmss.sql volumes/docker-entrypoint-initdb.d/
$ docker-compose up [--build]

FAQ

How can I use non-default password or variables?

simply modify the variable configures in `env.*` before run

Known Issue

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

About

Dockerize YOURLS service (Shorten URL Service)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 97.1%
  • Dockerfile 1.9%
  • Other 1.0%