---
title: Deploy pretix with AI on Blossom
url: "/deploy/pretix/"
canonical_url: https://blossom88.com/deploy/pretix/
markdown_url: https://blossom88.com/deploy/pretix.md
summary: Publish a free workshop ticket and export your sample attendee list.
categories:
- deployment
- events
stack:
- Python
- Django
- Celery
- PostgreSQL
- Redis
---

# Deploy pretix with AI on Blossom

[pretix](https://pretix.eu/) gives event organizers an online ticket shop,
an order dashboard, and check-in tools.

## Ask Your Agent

> **Ask your AI agent:** Deploy pretix on Blossom and help me create a free workshop ticket and export the attendee list.
>
> Follow this guide: https://blossom88.com/deploy/pretix/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and choose a Blossom Cloud Location when you log in. You can also use [Blossom BYOC (bring your own cloud)](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#blossom-byoc).

## How It Runs

| Part | Role | Where |
|---|---|---|
| pretix | Serve the ticket shop and run its worker and periodic tasks | Persistent Service with one Container |
| PostgreSQL | Store events, tickets, and orders | Blossom Managed Data |
| Redis | Queue exports and cache application data | Blossom Managed Data |
| Uploads and exports | Keep generated files and media | Volume mounted at /data |

## Deploy pretix Community Edition

Use the [Community Edition](https://docs.pretix.eu/trust/licensing/faq/) and
the [official standalone image](https://docs.pretix.eu/self-hosting/installation/docker_smallscale/).
Choose a Location that matches the image's architecture. The tested
standalone image uses x86-64. Link PostgreSQL and Redis, keep the demo
behind Blossom Account access, and change the initial administrator
password before you use it.

<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    blossom database_instance:create --data postgres.yml
    blossom cache_instance:create --data redis.yml
    blossom environment_link:create --data database-link.yml
    blossom environment_link:create --data cache-link.yml
    blossom service:create --data pretix.yml
    blossom environment:deploy --id environment-100 --follow

</details>

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Set `PRETIX_PRETIX_URL` to the ticket shop's HTTPS address and keep
`PRETIX_DJANGO_SECRET` stable. Map the linked PostgreSQL URL to the
`PRETIX_DATABASE_*` settings. Use the linked Redis instance for caching,
the Celery result backend, and the broker. The
[pretix configuration reference](https://docs.pretix.eu/self-hosting/config/)
lists the environment variables.

Mount a [Persistent Service Volume](/docs/apps/persistent-services/) at
`/data` and make it writable by the image's pretix user. Start the
image's `all` command and schedule `pretix cron` alongside it so periodic
tasks can reach the same database and files.

</details>

## Create a Workshop Ticket

Create an organizer and a future event. Add a free admission ticket
with a capacity limit and enable test mode.

> **Ask your AI agent:** Create a sample workshop with six free tickets and open its ticket page.

> Follow this guide: https://blossom88.com/deploy/pretix/



![See the free workshop ticket in the ticket shop.](/deploy/assets/images/pretix/test-ticket-shop.webp)

## Export the Attendee List

Create one test order using sample contact details. Open the event's
orders and run a CSV export.

> **Ask your AI agent:** Place a free test order and export the attendee list as a CSV.

> Follow this guide: https://blossom88.com/deploy/pretix/



![Reopen the sample workshop order in pretix.](/deploy/assets/images/pretix/test-order.webp)

## Reopen After an Update

Replace the pretix Container, then open the same order and run a fresh
export. Check that it includes the original attendee.

> **Ask your AI agent:** Replace the pretix Container and export the same attendee list again.

> Follow this guide: https://blossom88.com/deploy/pretix/



## What You Get

A private sample ticket shop, a free workshop order, and an attendee
CSV you can generate again after Container replacement.

## What You Get

- A private ticket shop with a sample workshop
- One free test order and an attendee CSV
- The same order in a fresh export after Container replacement

Tested on Blossom: A fresh CSV export contained the same test attendee after Container replacement.
