sftgunner / Multi-URL

Combine multiple URLs into one short link.

Home Page:https://multiurl.sftg.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multi-URL

Example docker-compose.yml

version: "3.8"
services:

  # PHP Service
  php:
    # image: php:7.4-apache
    build: .
    environment:
      MYSQL_SERVER_MULTIURL: "mariadb" # set this to the name of the MariaDB service
      MYSQL_PORT_MULTIURL: 3306
      MYSQL_DB_MULTIURL: "multiurl"
      MYSQL_USER_MULTIURL: "multiurl_db_public"
      MYSQL_PASSWORD_MULTIURL: {INSERT HERE}
      RECAPTCHA_SECRET_MULTIURL: {INSERT HERE}
    ports:
      - "{SELECT YOUR PORT}:80"
    volumes:
      - ./:/var/www/html/

  # MariaDB Service
  mariadb:
    image: mariadb:10.11
    environment:
      MYSQL_RANDOM_ROOT_PASSWORD: "true"
      MYSQL_DATABASE: "multiurl"
      MYSQL_USER: "multiurl_db_public"
      MYSQL_PASSWORD: {INSERT HERE}
    volumes:
      - mysqldata:/var/lib/mysql # ensures the database is persistent
      - ./mysql-startup:/docker-entrypoint-initdb.d # contents of this runs on startup
      

# Volumes
volumes:
  mysqldata: # this is managed by docker - to clear use docker exec -it multi-url-mariadb-1 bash

About

Combine multiple URLs into one short link.

https://multiurl.sftg.io

License:MIT License


Languages

Language:PHP 53.7%Language:HTML 45.7%Language:Dockerfile 0.6%