ZPascal / pretix-docker-compose

The repository includes a Pretix Docker compose configuration
Apache License 2.0
6 stars 2 forks source link

Include reverse proxy #1

Open besendorf opened 2 months ago

besendorf commented 2 months ago

It would be even easier to use if you could make a version that includes a reverse proxy. Ideally with automatic lets encrypt TLS certificates.

ZPascal commented 2 months ago

It would be even easier to use if you could make a version that includes a reverse proxy. Ideally with automatic lets encrypt TLS certificates.

@besendorf I used the docker compose file for a dev case. Are you using it in a productive scenario?

For the productive case, I deployed it in a K8s cluster with a Let's Encrypt-based Nginx proxy.

besendorf commented 2 months ago

I would like to use it as production service on with docker compose

ZPascal commented 2 months ago

I would like to use it as production service on with docker compose

@besendorf I'll check the possible options.

ZPascal commented 2 months ago

@besendorf Is the configuration and forwarding of certificates from outside as a volume mount okay for you?

chrisdeely commented 2 months ago

Another option is to use a Cloudflare Tunnel which are available on their free tier. I've had success with this config:

tunnel:
    container_name: cloudflared-tunnel
    image: cloudflare/cloudflared
    restart: unless-stopped
    command: tunnel run
    environment:
      - TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}
    depends_on:
      - app
    networks:
      - backend