Sign inSign up

alfg/yourls

By alfg

•Updated almost 7 years ago

Image
0

366

alfg/yourls repository overview

⁠Docker YOURLS

A Dockerfile installing YOURLS⁠ running on Apache 2.4 from source. Built on Alpine Linux.

Docker Stars Docker Pulls Docker Automated build Build Status

⁠Usage

  • Pull docker image and run:
docker pull alfg/yourls
docker run -d -p 8080:80 --rm alfg/yourls
  • or build and run container from source:
docker build -t YOURLS
docker run -d -p 8080:80 --rm yourls
  • or build using docker-compose:
docker-compose build
docker-compose up

This should bring up the app and database image.

  • Log into the admin in a browser at: http://localhost:8080/admin to setup the database and create a short url:
    • USERNAME: username
    • PASSWORD: password

Please note, you should update your username and password in the config.

  • Create a shorturl and test:
curl -i http://localhost:8080/<keyword>

⁠Configure

It is highly recommended to configure the options defined in src/config.php⁠ to setup your domain, connection and security settings.

See https://yourls.org/#Config⁠ for reference.


Apache HTTPD default configurations are included in the etc⁠ directory. You can override the configurations and these will be copied over into the container.

Also see etc/httpd/sites/⁠ for adding or editing virtual hosts.

⁠Resources

⁠License

MIT

Tag summary

Content type

Image

Digest

Size

16.1 MB

Last updated

almost 7 years ago

docker pull alfg/yourls