dub Docker & Self-Hosted Deployment

GitHub

The modern link attribution platform. Loved by world-class marketing teams like Framer, Perplexity, Superhuman, Twilio, Buffer and more.

24,313 stars TypeScript TypeScript 1 file ยท ~2,502 tokens #clickhouse#mysql#nextjs#open-source#planetscale#prisma#tailwindcss#tinybird
RAW Compose
1. Pull Image (DOCKERHUB) docker pull library/mysql
2. Docker Run (1-Click Launch) docker run -d --name dub -p 3306:3306 --restart always mysql:8.0
3. Podman Run podman run -d --name dub -p 3306:3306 --restart always mysql:8.0
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/library/mysql:8.0
5. ORAS Pull (OCI Artifact) oras pull mysql:8.0
6. Compose Deployment docker compose up -d
apps/web/docker-compose.yml
Download .yml
# This is meant for local development only. Do not use this in production.
version: "3.8"

services:
  ps-mysql:
    image: mysql:8.0
    restart: always
    environment:
      MYSQL_DATABASE: planetscale
      MYSQL_ROOT_HOST: "%"
      MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
    command:
      [
        "--max_connections=1000",
        "--default-authentication-plugin=mysql_native_password",
      ]
    ports:
      - 3306:3306
    volumes:
      - ps-mysql:/var/lib/mysql

  planetscale-proxy:
    image: ghcr.io/mattrobenolt/ps-http-sim:latest
    command:
      [
        "-mysql-no-pass",
        "-listen-port=3900",
        "-mysql-dbname=planetscale",
        "-mysql-addr=ps-mysql",
      ]
    depends_on:
      - ps-mysql
    ports:
      - 3900:3900
    links:
      - ps-mysql

  mailhog:
    image: "mailhog/mailhog:latest"
    ports:
      - "1025:1025"
      - "8025:8025"

volumes:
  ps-mysql: