Skip to content

Commit

Permalink
chore: update docker images reference
Browse files Browse the repository at this point in the history
  • Loading branch information
UlisesGascon committed Dec 18, 2024
1 parent 9403273 commit 4a6b0be
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 6 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
visionBoard_data:
2 changes: 1 addition & 1 deletion src/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
},
Expand Down

0 comments on commit 4a6b0be

Please sign in to comment.