Docker Compose refactoring

This commit is contained in:
Darren Clarke 2023-06-21 12:48:07 +00:00 committed by GitHub
parent 7a2a667aaf
commit a53a26f4c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 411 additions and 524 deletions

View file

@ -8,7 +8,7 @@ export const configSchema = {
connection: {
doc: "The postgres connection url.",
format: "uri",
default: "postgresql://metamigo:metamigo@127.0.0.1:5435/metamigo_dev",
default: "postgresql://metamigo:metamigo@127.0.0.1:5433/metamigo_dev",
env: "METAMIGO_DATABASE_URL",
sensitive: true,
},
@ -29,7 +29,7 @@ export const configSchema = {
connection: {
doc: "The postgres connection url for the worker database.",
format: "uri",
default: "postgresql://metamigo:metamigo@127.0.0.1:5435/metamigo_dev",
default: "postgresql://metamigo:metamigo@127.0.0.1:5433/metamigo_dev",
env: "METAMIGO_WORKER_DATABASE_URL",
},
concurrency: {
@ -55,14 +55,14 @@ export const configSchema = {
appRootConnection: {
doc: "The postgres root/superuser connection url for development mode so PG can watch the schema changes, this is strangely named in the postgraphile API 'ownerConnectionString'",
format: String,
default: "postgresql://postgres:metamigo@127.0.0.1:5435/metamigo_dev",
default: "postgresql://postgres:metamigo@127.0.0.1:5433/metamigo_dev",
env: "METAMIGO_APP_ROOT_DATABASE_URL",
},
authConnection: {
doc: "The postgres connection URL for postgraphile, must not be superuser and must have limited privs.",
format: String,
default:
"postgresql://metamigo_graphile_auth:metamigo@127.0.0.1:5435/metamigo_dev",
"postgresql://metamigo_graphile_auth:metamigo@127.0.0.1:5433/metamigo_dev",
env: "METAMIGO_DATABASE_AUTH_URL",
},
visitor: {
@ -88,14 +88,14 @@ export const configSchema = {
shadowConnection: {
doc: "The shadow databse connection url used by postgraphile-migrate. Not needed in production.",
format: "uri",
default: "postgresql://metamigo:metamigo@127.0.0.1:5435/metamigo_shadow",
default: "postgresql://metamigo:metamigo@127.0.0.1:5433/metamigo_shadow",
env: "METAMIGO_SHADOW_DATABASE_URL",
sensitive: true,
},
rootConnection: {
doc: "The postgres root/superuser connection url for testing only, database must NOT be the app database. Not needed in production.",
format: "uri",
default: "postgresql://postgres:metamigo@127.0.0.1:5435/template1",
default: "postgresql://postgres:metamigo@127.0.0.1:5433/template1",
env: "METAMIGO_ROOT_DATABASE_URL",
sensitive: true,
},
@ -363,10 +363,10 @@ export interface INextAuthConfig {
encryptionKey: string;
signingKeyB64: string;
encryptionKeyB64: string;
google?: { id: string; secret: string };
github?: { id: string; secret: string };
gitlab?: { id: string; secret: string };
cognito?: { id: string; secret: string; domain: string };
google?: { id: string; secret: string; };
github?: { id: string; secret: string; };
gitlab?: { id: string; secret: string; };
cognito?: { id: string; secret: string; domain: string; };
}
export interface ICFAccessConfig {