Sign inSign up

bmoorman/url-shortener

By bmoorman

•Updated about 5 hours ago

URL Shortener [iVirus/Docker-URL-Shortener] on Ubuntu

Image
0

5.7K

bmoorman/url-shortener repository overview

⁠How to use this image

⁠Docker Run

docker run \
--detach \
--name memcached \
--restart unless-stopped \
memcached:latest

docker run \
--detach \
--name url-shortener \
--restart unless-stopped \
--link memcached \
--publish 1816:1816 \
--volume url-shortener-config:/config \
bmoorman/url-shortener:latest

⁠Docker Compose

version: "3.7"
services:
  memcached:
    image: memcached:latest
    container_name: memcached
    restart: unless-stopped

   url-shortener:
    image: bmoorman/url-shortener:latest
    container_name: url-shortener
    restart: unless-stopped
    depends_on:
      - memcached
    ports:
      - "1816:1816"
    volumes:
      - url-shortener-config:/config

volumes:
  url-shortener-config:

⁠Environment Variables

VariableDescriptionDefault
TZSets the timezoneAmerica/Denver
HTTPD_SERVERNAMESets the vhost servernamelocalhost
HTTPD_PORTSets the vhost port1816
HTTPD_SSLSet to anything other than SSL (e.g. NO_SSL) to disable SSLSSL
HTTPD_REDIRECTSet to anything other than REDIRECT (e.g. NO_REDIRECT) to disable SSL redirectREDIRECT
MEMCACHED_HOSTSets the Memcached hostmemcached
MEMCACHED_PORTSets the Memcached port11211

Tag summary

Content type

Image

Digest

sha256:5d0b61d20…

Size

100.3 MB

Last updated

about 5 hours ago

docker pull bmoorman/url-shortener