diff --git a/docker-compose.yml b/docker-compose.yml index 16e2a6cfc..6c78d3cd5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -52,6 +52,7 @@ services: PGUSER: postgres PGPASSWORD: postgrespassword PGDATABASE: postgres + CRON_DATABASE: postgres PORT: 9180 AWS_REGION: eu-central-1 AWS_ACCESS_KEY_ID: diff --git a/runner/src/provisioner/provisioner.ts b/runner/src/provisioner/provisioner.ts index 97d927b43..83d60ea4f 100644 --- a/runner/src/provisioner/provisioner.ts +++ b/runner/src/provisioner/provisioner.ts @@ -7,7 +7,6 @@ import HasuraClient from '../hasura-client'; import PgClientClass from '../pg-client'; const DEFAULT_PASSWORD_LENGTH = 16; -const CRON_DATABASE = 'cron'; const adminDefaultPgClientGlobal = new PgClientClass({ user: process.env.PGUSER, @@ -20,7 +19,7 @@ const adminDefaultPgClientGlobal = new PgClientClass({ const adminCronPgClientGlobal = new PgClientClass({ user: process.env.PGUSER, password: process.env.PGPASSWORD, - database: CRON_DATABASE, + database: process.env.CRON_DATABASE, host: process.env.PGHOST, port: Number(process.env.PGPORT), });