Skip to content

Better custom domain example - #28

Merged
h4x3rotab merged 6 commits into
mainfrom
ingress
Apr 17, 2025
Merged

Better custom domain example#28
h4x3rotab merged 6 commits into
mainfrom
ingress

Conversation

@kvinwang

@kvinwang kvinwang commented Apr 10, 2025

Copy link
Copy Markdown
Collaborator

This PR replaces the previous custom-domain example with a more comprehensive, user-friendly version. The reverse proxy serves as an container that serves on HTTPS and directs traffic to your plain HTTP application server.

Example usage:

services:
  dstack-ingress:
    image: kvin/dstack-ingress@sha256:5cbf6eff9983fad4018de90ed11b0593c84f2022ddfc64b9eb513d1ba79970c7
    ports:
      - "443:443"
    environment:
      - DOMAIN=${DOMAIN}
      - GATEWAY_DOMAIN=${GATEWAY_DOMAIN}
      - CERTBOT_EMAIL=${CERTBOT_EMAIL}
      - CLOUDFLARE_API_TOKEN=${CLOUDFLARE_API_TOKEN}
      - SET_CAA=true
      - TARGET_ENDPOINT=http://app:80
    volumes:
      - /var/run/tappd.sock:/var/run/tappd.sock
      - cert-data:/etc/letsencrypt
    restart: unless-stopped
  app:
    image: nginx  # Replace with your application image
    restart: unless-stopped
volumes:
  cert-data:

Resolves Phala-Network/phala-cloud#21

@h4x3rotab
h4x3rotab merged commit 4378932 into main Apr 17, 2025
h4x3rotab added a commit that referenced this pull request Aug 8, 2025
Better custom domain example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

User friendly customized domain setup

2 participants