项目作者: alfg

项目描述 :
A Dockerfile installing YOURLS running on Apache 2.4 from source. Built on Alpine Linux.
高级语言: PHP
项目地址: git://github.com/alfg/docker-YOURLS.git
创建时间: 2019-12-23T01:15:16Z
项目社区:https://github.com/alfg/docker-YOURLS

开源协议:MIT License

下载


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:
    1. docker pull alfg/yourls
    2. docker run -d -p 8080:80 --rm alfg/yourls
  • or build and run container from source:

    1. docker build -t YOURLS
    2. docker run -d -p 8080:80 --rm yourls
  • or build using docker-compose:

    1. docker-compose build
    2. 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:
    1. 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