Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alfg/docker-yourls
A Dockerfile installing YOURLS running on Apache 2.4 from source. Built on Alpine Linux.
https://github.com/alfg/docker-yourls
apache docker php shorturl url urlshortener yourls
Last synced: 10 days ago
JSON representation
A Dockerfile installing YOURLS running on Apache 2.4 from source. Built on Alpine Linux.
- Host: GitHub
- URL: https://github.com/alfg/docker-yourls
- Owner: alfg
- License: mit
- Created: 2019-12-23T01:15:16.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-23T01:36:01.000Z (about 5 years ago)
- Last Synced: 2024-11-06T03:46:08.179Z (about 2 months ago)
- Topics: apache, docker, php, shorturl, url, urlshortener, yourls
- Language: PHP
- Homepage: https://github.com/alfg/docker-YOURLS
- Size: 33.2 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker YOURLS
A Dockerfile installing [YOURLS](https://github.com/YOURLS/YOURLS) running on Apache 2.4 from source. Built on Alpine Linux.[![Docker Stars](https://img.shields.io/docker/stars/alfg/yourls.svg)](https://hub.docker.com/r/alfg/yourls/)
[![Docker Pulls](https://img.shields.io/docker/pulls/alfg/yourls.svg)](https://hub.docker.com/r/alfg/yourls/)
[![Docker Automated build](https://img.shields.io/docker/automated/alfg/yourls.svg)](https://hub.docker.com/r/alfg/yourls/builds/)
[![Build Status](https://travis-ci.org/alfg/docker-YOURLS.svg?branch=master)](https://travis-ci.org/alfg/docker-YOURLS)## 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/
```## Configure
It is highly recommended to configure the options defined in [src/config.php](src/config.php) to setup your domain, connection and security settings.See [https://yourls.org/#Config](https://yourls.org/#Config) for reference.
---
Apache HTTPD default configurations are included in the [etc](/etc) directory. You can override the configurations and these will be copied over into the container.
Also see [etc/httpd/sites/](/etc/httpd/sites) for adding or editing virtual hosts.
## Resources
* https://github.com/YOURLS/YOURLS
* https://github.com/YOURLS/YOURLS/wiki
* https://yourls.org/#Config
* http://httpd.apache.org/docs/2.4/install.html## License
MIT