Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 825 Bytes

README.md

File metadata and controls

42 lines (30 loc) · 825 Bytes

Shortify

Yet another URL shortener written in Elixir.

Running shortify locally

  • Set DATABASE_URL environment variable with pool size

postgres://username:password@db_host:5432/shortify_db?pool_size=10

Building and deploying release with Docker

Building image
docker build -t shortify .
Running container
docker run --rm \
    -p 4000:4000 \
    -p 4001:4001 \
    -e DATABASE_URL="postgres://postgres:pass@pgdb:5432/shortify_db?pool_size=10" \
    -e WEB_BASE_URL="http://mydomain.com" \
    -it shortify
  • 4000 port listening for web and 4001 for API by default.


License : MIT