rls
This commit is contained in:
+3
-1
@@ -1,7 +1,7 @@
|
||||
version: "3.9"
|
||||
|
||||
x-app-env: &app-env
|
||||
DATABASE_URL: postgres://papercrate:${POSTGRES_PASSWORD:?POSTGRES_PASSWORD must be set}@postgres:5432/papercrate
|
||||
DATABASE_URL: postgres://papercrate_app_login:${APP_DATABASE_PASSWORD:-papercrate_app}@postgres:5432/papercrate
|
||||
DATABASE_MAX_POOL_SIZE: ${DATABASE_MAX_POOL_SIZE:-8}
|
||||
SERVER_HOST: 0.0.0.0
|
||||
SERVER_PORT: 3000
|
||||
@@ -41,6 +41,7 @@ services:
|
||||
POSTGRES_DB: papercrate
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- ./backend/postgres-init:/docker-entrypoint-initdb.d
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U papercrate -d papercrate"]
|
||||
interval: 10s
|
||||
@@ -170,6 +171,7 @@ services:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
<<: *app-env
|
||||
DATABASE_URL: postgres://papercrate:${POSTGRES_PASSWORD:?POSTGRES_PASSWORD must be set}@postgres:5432/papercrate
|
||||
entrypoint: ["/usr/local/bin/diesel"]
|
||||
command: ["migration", "run"]
|
||||
restart: "no"
|
||||
|
||||
Reference in New Issue
Block a user