Skip to content
Discussion options

You must be logged in to vote

There are two separate contexts here: RUN apt-get ... is a Dockerfile instruction, not SQL or a command you can enter in psql. Installing a package manually in a running container would also be lost when that container is replaced.

For pg_cron in a Dokploy PostgreSQL 18 database:

  1. Back up the database and note the current image tag and base distribution. Build a PostgreSQL 18 image for that same distribution with a compatible pg_cron package (for Debian/Ubuntu using PGDG, the package is postgresql-18-cron), then choose it under the database's Advanced → Custom Docker Image. Keep the existing data volume and PostgreSQL major version.
  2. Add pg_cron to PostgreSQL's shared_preload_libraries (pr…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@rbalet
Comment options

Comment options

You must be logged in to vote
1 reply
@rbalet
Comment options

Answer selected by rbalet
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants