From 4a6b0be1f73f6a0f6ec3d633f0a067f7e287114b Mon Sep 17 00:00:00 2001 From: Ulises Gascon Date: Wed, 18 Dec 2024 20:53:35 +0100 Subject: [PATCH] chore: update docker images reference --- .github/workflows/ci.yml | 4 ++-- docker-compose.yml | 13 ++++++------- src/config/index.js | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aacd71a..3dbb12e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,12 +17,12 @@ jobs: image: postgres:17.2 env: POSTGRES_DB: dashboard - POSTGRES_USER: openjs + POSTGRES_USER: visionBoard POSTGRES_PASSWORD: password ports: - 5432:5432 options: >- - --health-cmd="pg_isready -U openjs" + --health-cmd="pg_isready -U visionBoard" --health-interval=10s --health-timeout=5s --health-retries=5 diff --git a/docker-compose.yml b/docker-compose.yml index df4edf3..981ee97 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,12 +4,12 @@ services: restart: always environment: POSTGRES_DB: dashboard - POSTGRES_USER: openjs + POSTGRES_USER: visionBoard POSTGRES_PASSWORD: password ports: - 5432:5432 volumes: - - openjs_dashboard_data:/var/lib/postgresql/data + - visionBoard_data:/var/lib/postgresql/data adminer: image: adminer @@ -25,18 +25,17 @@ services: - db environment: POSTGRES_DB: dashboard - POSTGRES_USER: openjs + POSTGRES_USER: visionBoard POSTGRES_PASSWORD: password PGPASSWORD: password # bypass the password prompt volumes: - - openjs_dashboard_data:/var/lib/postgresql/data + - visionBoard_data:/var/lib/postgresql/data - ./src/database/schema:/schema entrypoint: > bash -c " - pg_dump --host=db --username=openjs --schema-only --no-owner --dbname=dashboard > /schema/schema.sql && + pg_dump --host=db --username=visionBoard --schema-only --no-owner --dbname=dashboard > /schema/schema.sql && chmod 644 /schema/schema.sql " - volumes: - openjs_dashboard_data: \ No newline at end of file + visionBoard_data: \ No newline at end of file diff --git a/src/config/index.js b/src/config/index.js index 5d6e16a..f4c7a4e 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -5,7 +5,7 @@ const dbSettings = { client: 'pg', connection: { host: process.env.DB_HOST || '0.0.0.0', - user: process.env.DB_USER || 'openjs', + user: process.env.DB_USER || 'visionBoard', password: process.env.DB_PASSWORD || 'password', database: process.env.DB_NAME || 'dashboard' },