Giter Site home page Giter Site logo

docker-yourls's Introduction

docker-yourls

http://yourls.org/#About
https://registry.hub.docker.com/u/bios/docker-yourls/

Docker image to start a yourls container with CentOS, Nginx, fpm

optional with linked MySQL/Postgres Container or external MySQL.

Quickstart with mysql container

docker run --name yourlsmysql -e MYSQL_ROOT_PASSWORD=mysecretpassword -d mysql
docker run --name yourls -d \
-e YOURL_USER='admin' \
-e YOURL_PASSWORD='mysecretpassword' \
-e YOURLS_SITE='http://sh.tld' \
--link yourlsmysql:mysql bios/docker-yourls

Options

  • YOURLS_SITE='http://domain.tld'

  • YOURL_USER='admin'

  • YOURL_PASSWORD='mysecretpassword'

  • YOURLS_RELATIV_URL_ROOT='/short'

  • FQDN='sh.tld'

  • SSL_SELFSIGNED='true'

  • SSL_PROTOCOLS='TLSv1 TLSv1.1 TLSv1.2'

  • SSL_CIPHERS='AES256+EECDH:AES256+EDH'

  • DB_PREFIX='yourls_'

  • DB_HOST='mysql01.yourls.tld'

  • DB_USER='yourls'

  • DB_PASSWORD='mysecretpassword'

  • DB_NAME='yourls'

  • YOURLS_PUB_DUMMY='true'

Linking to PostgreSQL Container

docker run --name yourlspostgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres
docker exec yourlspostgres sed -i '/IPv4 local connections/a host    all             all             172.17.42.1/32          trust' \
/var/lib/postgresql/data/pg_hba.conf
docker restart yourlspostgres
    docker run --name yourls -d \
-e YOURL_USER='admin' \
-e YOURL_PASSWORD='mysecretpassword' \
-e YOURLS_SITE='http://sh.tld' \
--link yourlspostgres:postgres bios/docker-yourls

External MySQL Server

docker run --dns 8.8.8.8 \
-e DB_HOST='mysql01.yourls.tld' \
-e DB_USER='yourls' \
-e DB_PASSWORD='mysecretpassword' \
-e DB_NAME='yourls' \
-e FQDN='sh.tld' \
-e YOURL_USER='admin' \
-e YOURL_PASSWORD='mysecretpassword' \
-e YOURLS_SITE='http://sh.tld' \
-e YOURLS_PUB_DUMMY='true' \
-d bios/docker-yourls

Example

Example with linked MySQL, custom path, custom SSL version / ciphers and custom FQDN

docker run --name yourls --dns 8.8.4.4 -d \
-v /opt/yourls:/data \
-e SSL_SELFSIGNED='true' \
-e DB_PREFIX='yourls_' \
-e SSL_PROTOCOLS='TLSv1 TLSv1.1 TLSv1.2' \
-e SSL_CIPHERS='AES256+EECDH:AES256+EDH' \
-e YOURLS_RELATIV_URL_ROOT='/short' \
-e YOURLS_SITE='http://domain.tld' \
-e YOURL_USER='admin' \
-e YOURL_PASSWORD='mysecretpassword' \
-e FQDN='my.hostname.tld' -p 443:443 --link yourlsmysql:mysql bios/docker-yourls

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.