First commit for realz API REST service

This commit is contained in:
2025-09-25 15:00:27 +02:00
parent 53e4512274
commit 0a66597018
7 changed files with 413 additions and 1 deletions

View File

@@ -1,4 +1,13 @@
services:
api:
image: postgrest/postgrest
ports:
- "3300:3000"
environment:
PGRST_DB_URI: postgres://${PGRST_AUTHUSER}:${PGRST_PASSWORD}@postgis:5432
PGRST_DB_SCHEMAS: raf20lambert93
PGRST_DB_ANON_ROLE: web_anon
PGRST_OPENAPI_SERVER_PROXY_URI: http://127.0.0.1:3000
postgis:
image: realz
container_name: postgis_initialized
@@ -6,6 +15,8 @@ services:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB} # Base de données pour l'administration, pas celle de l'app
- PGRST_AUTHUSER=${PGRST_AUTHUSER}
- PGRST_PASSWORD=${PGRST_PASSWORD}
ports:
- "5433:5432"
volumes: