2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 13:23:02 +01:00

add yourls

This commit is contained in:
kev
2019-02-12 18:28:09 +08:00
parent f05b4d361a
commit aa0ecde5fa
3 changed files with 37 additions and 0 deletions

8
yourls/README.md Normal file
View File

@@ -0,0 +1,8 @@
yourls
======
[YOURLS][1] stands for Your Own URL Shortener. It is a small set of PHP scripts
that will allow you to run your own URL shortening service (a la TinyURL or
Bitly).
[1]: http://yourls.org/

28
yourls/docker-compose.yml Normal file
View File

@@ -0,0 +1,28 @@
version: '3.1'
services:
yourls:
image: yourls
ports:
- "8080:80"
environment:
- YOURLS_DB_HOST=mysql
- YOURLS_DB_USER=root
- YOURLS_DB_PASS=root
- YOURLS_DB_NAME=yourls
- YOURLS_USER=admin
- YOURLS_PASS=admin
- YOURLS_SITE=https://yourls.easypi.pro
depends_on:
- mysql
restart: always
mysql:
image: mysql:5.7
volumes:
- ./data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=yourls
restart: always