@@ -42,8 +42,10 @@ The Database Playground is a platform designed to enhance your SQL skills throug
42421 . Deploy Redis, PostgreSQL, Meilisearch, and Umami (for statistics) on Zeabur.
43432 . 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.
47495 . 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 ```
62656 . 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 ```
72777 . 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
7681We provide a Docker Compose configuration based on [ Symfony Docker] ( https://github.com/dunglas/symfony-docker ) for
7782deployment. 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
8085To 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