Fix database connection in docker
This commit is contained in:
@ -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=
|
||||
|
@ -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
|
||||
|
@ -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(),
|
||||
})
|
||||
|
Reference in New Issue
Block a user