Skip to main content

Yourls

version: '3.1'

services:

  yourls:
    image: yourls
    restart: unless-stopped
    ports:
      - 8080:80
    environment:
      YOURLS_DB_PASS: example
      YOURLS_SITE: https://example.com
      YOURLS_USER: example_username
      YOURLS_PASS: example_password
    volumes:
      - /srv/path/Files/Yourls/:/var/www/html/user
      - /srv/path/Files/Yourls/plugins:/var/www/html/user/plugins

  mysql:
    image: mysql
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: example
      MYSQL_DATABASE: yourls

Cool stuff around yourls : https://github.com/YOURLS/awesome-yourls