A Dockerfile installing YOURLS running on Apache 2.4 from source. Built on Alpine Linux.
A Dockerfile installing YOURLS running on Apache 2.4 from source. Built on Alpine Linux.
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.
http://localhost:8080/admin
to setup the database and create a short url:USERNAME
: usernamePASSWORD
: passwordPlease note, you should update your username and password in the config.
curl -i http://localhost:8080/<keyword>
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.
MIT