webservice
This commit is contained in:
23
postgresql.md
Normal file
23
postgresql.md
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
pgadmin:
|
||||||
|
image: dpage/pgadmin4:9.8
|
||||||
|
depends_on:
|
||||||
|
database:
|
||||||
|
condition: service_healthy
|
||||||
|
caddy:
|
||||||
|
condition: service_started
|
||||||
|
restart: "no"
|
||||||
|
configs:
|
||||||
|
- source: pgadmin_config
|
||||||
|
target: /pgadmin4/servers.json
|
||||||
|
volumes:
|
||||||
|
- pgadmin:/var/lib/pgadmin/
|
||||||
|
environment:
|
||||||
|
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL}
|
||||||
|
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD}
|
||||||
|
PGADMIN_DISABLE_POSTFIX: true
|
||||||
|
networks:
|
||||||
|
- caddy_net
|
||||||
|
labels:
|
||||||
|
caddy: pgadmin.localhost
|
||||||
|
caddy.reverse_proxy: "{{upstreams 80}}"
|
||||||
|
caddy.tls: internal
|
||||||
@@ -29,6 +29,9 @@ docker run --detach --name caddy-docker-proxy --restart=always \
|
|||||||
lucaslorentz/caddy-docker-proxy:2.10
|
lucaslorentz/caddy-docker-proxy:2.10
|
||||||
```
|
```
|
||||||
|
|
||||||
|
caddy.file_server: "" # Active le serveur de fichiers statiques
|
||||||
|
caddy.tls: internal # HTTPS auto-signé géré par Caddy
|
||||||
|
|
||||||
Pour l'invite de commande Windows remplacer `\` par `^` et `$(pwd)/` par `%cd%\`
|
Pour l'invite de commande Windows remplacer `\` par `^` et `$(pwd)/` par `%cd%\`
|
||||||
|
|
||||||
## WhoAmI
|
## WhoAmI
|
||||||
|
|||||||
@@ -1,3 +1,32 @@
|
|||||||
|
|
||||||
|
# PostgREST
|
||||||
|
# Serve a fully RESTful API from any existing PostgreSQL database.
|
||||||
|
# It provides a cleaner, more standards-compliant, faster API than you are likely to write from scratch.
|
||||||
|
# https://docs.postgrest.org/en/v13/
|
||||||
|
postgrest:
|
||||||
|
image: postgrest/postgrest:v13.0.7
|
||||||
|
restart: "no"
|
||||||
|
depends_on:
|
||||||
|
database:
|
||||||
|
condition: service_healthy
|
||||||
|
caddy:
|
||||||
|
condition: service_started
|
||||||
|
command: postgrest
|
||||||
|
environment:
|
||||||
|
PGRST_DB_URI: postgres://${POSTGREST_USER:-postgrest}:${POSTGREST_PASSWORD}@${POSTGREST_HOST:-database}:${POSTGREST_DB_PORT:-5432}/${COMPOSE_PROJECT_NAME}
|
||||||
|
PGRST_DB_SCHEMAS: ${POSTGREST_DB_SCHEMAS:-public}
|
||||||
|
PGRST_DB_ANON_ROLE: ${POSTGREST_DB_ANON_ROLE:-anonyme}
|
||||||
|
PGRST_JWT_SECRET: ${POSTGREST_JWT_SECRET:-ChangeMeChangeMeChangeMeChangeMe}
|
||||||
|
PGRST_ADMIN_SERVER_PORT: 3055
|
||||||
|
PGRST_SERVER_PORT: 80
|
||||||
|
PGRST_OPENAPI_SERVER_PROXY_URI: https://postgrest.localhost
|
||||||
|
networks:
|
||||||
|
- caddy_net
|
||||||
|
labels:
|
||||||
|
caddy: postgrest.localhost
|
||||||
|
caddy.reverse_proxy: "{{upstreams 80}}"
|
||||||
|
caddy.tls: internal
|
||||||
|
|
||||||
## Scalar
|
## Scalar
|
||||||
|
|
||||||
Create world-class API Docs with a built-in interactive playground which seamlessly turns to a full featured API Client
|
Create world-class API Docs with a built-in interactive playground which seamlessly turns to a full featured API Client
|
||||||
|
|||||||
Reference in New Issue
Block a user