Use postgres container in preview deployments on Uffizzi

Signed-off-by: Adam Vollrath <adam.d.vollrath@gmail.com>
This commit is contained in:
Adam Vollrath
2023-02-16 12:37:29 -06:00
committed by GitHub
parent d872e3db26
commit 692d9a0134
2 changed files with 15 additions and 6 deletions
+8 -3
View File
@@ -10,9 +10,10 @@ services:
image: '${BACKSTAGE_IMAGE}'
environment:
POSTGRES_HOST: db
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432
POSTGRES_USER: postgres
POSTGRES_PASSWORD: example
POSTGRES_PASSWORD: kiTMoTsiEuyQ43GrL4Hv
NODE_ENV: production
deploy:
resources:
@@ -26,4 +27,8 @@ services:
db:
image: postgres
environment:
POSTGRES_PASSWORD: example
POSTGRES_PASSWORD: kiTMoTsiEuyQ43GrL4Hv
deploy:
resources:
limits:
memory: 250M
@@ -9,13 +9,17 @@ backend:
baseUrl: ${UFFIZZI_URL}
auth:
keys:
# random mock key for uffizi deployments
# random mock key for Uffizzi deployments
- secret: 5TXvdjVZFxF7qf9K5RAYRDoGrLzJooqa
listen:
port: 7007
database:
client: better-sqlite3
connection: ':memory:'
client: pg
connection:
host: ${POSTGRES_HOST}
port: ${POSTGRES_PORT}
user: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}
cache:
store: memory
cors: