Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 727c2c5

Browse files
committed
docs: Update README with new variables
1 parent 824b6c9 commit 727c2c5

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ The Database Playground is a platform designed to enhance your SQL skills throug
4242
1. Deploy Redis, PostgreSQL, Meilisearch, and Umami (for statistics) on Zeabur.
4343
2. Deploy [SQL runner](https://github.com/database-playground/sqlrunner-v2) on Zeabur, and rename the service host to
4444
`sqlrunner`.
45-
3. Deploy the application in Git mode on Zeabur.
46-
4. Deploy the worker in Git mode on Zeabur. The service name should be `worker`.
45+
3. Deploy the application in Git mode on Zeabur. You can use our prebuilt image at
46+
the GitHub Registry.
47+
4. Deploy the worker in Git mode on Zeabur. You can use our prebuilt image at
48+
the GitHub Registry. Also, it is recommended to create more than 1 worker.
4749
5. Add the following environment variables to the application:
4850
```env
4951
DATABASE_URL=postgresql://${POSTGRES_USERNAME}:${POSTGRES_PASSWORD}@postgresql.zeabur.internal:5432/${POSTGRES_DATABASE}?serverVersion=16&charset=utf8
@@ -58,6 +60,7 @@ The Database Playground is a platform designed to enhance your SQL skills throug
5860
LINE_NOTIFY_DSN=linenotify://line-notify-token@default
5961
SQLRUNNER_URL=http://sqlrunner.zeabur.internal:8080
6062
MAILER_DSN=ses://ACCESS_KEY:SECRET_KEY@default?region=eu-west-1
63+
MESSENGER_TRANSPORT_DSN=${REDIS_URI}/messages
6164
```
6265
6. Add the following environment variables to the worker:
6366
```env
@@ -68,14 +71,16 @@ The Database Playground is a platform designed to enhance your SQL skills throug
6871
APP_SECRET=${PASSWORD}
6972
LINE_NOTIFY_DSN=linenotify://line-notify-token@default
7073
MAILER_DSN=ses://ACCESS_KEY:SECRET_KEY@default?region=eu-west-1
74+
MESSENGER_TRANSPORT_DSN=${REDIS_URI}/messages
75+
MESSENGER_CONSUMER_NAME=app-sf-worker-1 # Change the number for each worker
7176
```
7277
7. Bind your domain, and the application will be ready for use. The Meilisearch index will be automatically created on start up.
7378

7479
### Docker
7580

7681
We provide a Docker Compose configuration based on [Symfony Docker](https://github.com/dunglas/symfony-docker) for
7782
deployment. The prebuilt image is available at
78-
the [GitHub Registry](https://github.com/database-playground/app-sf/pkgs/container/app-sf).
83+
the [GitHub Registry](https://github.com/orgs/database-playground/packages).
7984

8085
To deploy the application, you may need to update the secret or environment variables in the `compose.yaml` and
8186
`compose.prod.yaml` files, and then run the following command:

0 commit comments

Comments
 (0)