#docker compose postgres and backstage
1 messages · Page 1 of 1 (latest)
@hazy crystal could you please share the error logs?. I believe I have came across this situation
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)