Fix database connection in docker

This commit is contained in:
Mike Conrad
2025-06-04 20:27:13 -04:00
parent a7bdeb6248
commit c20536cd96
3 changed files with 7 additions and 6 deletions

View File

@ -1,12 +1,13 @@
TZ=UTC
PORT=3333
HOST=localhost
HOST=0.0.0.0
LOG_LEVEL=info
APP_KEY=
APP_KEY=sMoYEqixvC3sgJO4WM9ej9ctlcVtAdCE
NODE_ENV=development
SESSION_DRIVER=cookie
PG_USER=postgres
PG_PORT=5432
PG_HOST=localhost
PG_HOST=db
PG_PASSWORD=password
SENTRY_TOKEN=
SENTRY_ORG=
@ -14,4 +15,4 @@ REDIS_HOST=sentry-redis-1
REDIS_PORT=6379
REDIS_PASSWORD=
WEBHOOK_URL=
QUERY_FILTER='!user.email:*@mailinator.com !user.email:*@example.com'
QUERY_FILTER='!user.email:*@mailinator.com !user.email:*@example.com'

View File

@ -8,7 +8,7 @@ services:
volumes:
- ./:/app
- node_modules:/app/node_modules
command: /bin/sh -c "node ace migration:run --force && node ace serve --watch"
command: /bin/sh -c "node ace migration:run --force || node ace serve --watch"
depends_on:
db:
condition: service_healthy

View File

@ -34,7 +34,7 @@ export default await Env.create(new URL('../', import.meta.url), {
PG_USER: Env.schema.string(),
PG_PASSWORD: Env.schema.string(),
WEBHOOK_URL: Env.schema.string(),
WEBHOOK_URL: Env.schema.string.optional(),
QUERY_FILTER: Env.schema.string(),
})