#docker compose postgres and backstage

1 messages · Page 1 of 1 (latest)

hazy crystal
#

Hi im trying to create a basic new installation
when trying to work with postgres the application does come up but there are errors for missing entities on the web interface plus seems dbs got created but no data in the schemas
not sure how to debug that?

sturdy citrus
hazy crystal
#

this is my docker compose file

#

version: '3.8'
services:
backstage:
image: backstage_pg:latest # Use the tag you used when building your Docker image
environment:
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- POSTGRES_USER=pguser
- POSTGRES_PASSWORD=backstagepass
- POSTGRES_DB=backstage_db
ports:
- "7000:7007"
depends_on:
- postgres

postgres:
image: postgres:13
environment:
POSTGRES_USER: pguser
POSTGRES_PASSWORD: backstagepass
POSTGRES_DB: backstage_db
ports:
- "5432:5432"

#

I created the image after running build:all and adjusting the db config

#

database:
# client: better-sqlite3
# connection: ':memory:'

# config options: https://node-postgres.com/apis/client
client: pg
connection:
  host: ${POSTGRES_HOST}
  port: ${POSTGRES_PORT}
  user: ${POSTGRES_USER}
  password: ${POSTGRES_PASSWORD}
  database: ${POSTGRES_DB)
# connectionString: ${POSTGRES_CONN)
hazy crystal