Set environment variables
She reads everything she needs from environment variables, and there are a lot of them, so a file on your host beats adocker run line long enough to wrap three times.
Keep that file wherever you like and hand it to Docker with --env-file. Docker reads it on the host and sets each line in the container environment, which is where she looks. Start from the shipped example, which you can view on GitHub and copy into your own postqueen.env.
Create the container
One command creates the container. Before you run it, have Postgres, Redis and Temporal running: Temporal is not optional, and even outbound email is dispatched through it. Note the--network. Without it the container lands on the default bridge, where container names do not resolve, so a DATABASE_URL or REDIS_URL written against a service name fails to connect with nothing on screen to explain why. Use the network your database and Redis are already on.
Check it worked
You are waiting forBackend started successfully on port 3000, and then for the lines just
after it. She reports configuration problems there and keeps running anyway, so a container
that is up is not proof the settings are right:
This path uses port 5000, not 4007. The command above maps
-p 5000:5000, so she is on
localhost:5000 on your host. Docker Compose publishes the same container port as 4007
instead, which is why the reverse proxy pages mostly talk about 4007. Point your proxy at
whichever host port you actually mapped.