This commit is contained in:
2025-10-14 23:27:54 +02:00
parent 94b69bb041
commit 6961caa2af
6 changed files with 65 additions and 11 deletions

View File

@@ -110,6 +110,10 @@ services:
environment:
COUCHDB_USER: ${COUCHDB_USER}
COUCHDB_PASSWORD: ${COUCHDB_PASSWORD}
ports:
- 5984:5984
networks:
- caddy_net
labels:
caddy: couchdb.localhost
caddy.reverse_proxy: "{{upstreams 5984}}"

View File

@@ -1,5 +1,20 @@
@couchDB = http://{{$dotenv COUCHDB_USER}}:{{$dotenv COUCHDB_PASSWORD}}@couchdb.localhost
###
POST {{couchDB}}/_cluster_setup
Content-Type: application/json
{
"action": "enable_single_node",
"username": "{{$dotenv COUCHDB_USER}}",
"password": "{{$dotenv COUCHDB_PASSWORD}}",
"bind_address": "0.0.0.0",
"port": 5984
}
###
GET {{couchDB}}/_all_dbs
### Creates a new database.
@@ -20,7 +35,7 @@ Content-Type: application/json
GET {{couchDB}}/db/_all_docs
###
GET {{couchDB}}/db/74913d6d85b8af1d174baf3fe5000507
GET {{couchDB}}/db/df9679762e2630b609a69ecf9c000d67
###
POST {{couchDB}}/db/_find

View File

@@ -12,10 +12,16 @@
<h1>Base de données</h1>
<ul>
<li><a href="//whoami.localhost">whoami</a></li>
<li><a href="//pgadmin.localhost">pgAdmin</a></li>
<li><a href="//postgraphile.localhost/graphiql">PostGraphile</a></li>
<li><a href="//scalar.localhost">Scalar</a></li>
<li><a href="//whoami.localhost">whoami</a></li>
<li><a href="//pgadmin.localhost">pgAdmin</a></li>
<li><a href="//postgraphile.localhost/graphiql">PostGraphile</a></li>
<li><a href="//scalar.localhost">Scalar</a></li>
<li><a href="//superset.localhost">Superset</a></li>
<li><a href="//metabase.localhost">Metabase</a></li>
<li><a href="//grafana.localhost">Grafana</a></li>
<li><a href="//neo4j.localhost">Neo4J</a></li>
<li><a href="//rabbitmq.localhost">rabbitmq</a></li>
<li><a href="//couchdb.localhost/_utils/#login">C</a></li>
</ul>
</body>
</html>

View File

@@ -31,7 +31,8 @@ grant select
in schema public
to superset_user;
-- Privilège par défaut pour que chaque nouvelle table créée dans public donnera automatiquement le droit SELECT à superset_user.
-- Privilège par défaut pour que chaque nouvelle table créée dans public
-- donnera automatiquement le droit SELECT à superset_user.
alter default privileges
in schema public
grant select

View File

@@ -17,7 +17,20 @@ create role adherent nologin;
grant anonyme to postgrest;
grant adherent to postgrest;
grant usage on schema public to anonyme;
grant usage
on schema public
to anonyme;
alter default privileges in schema public
grant select on tables to anonyme;
-- Pour toutes les tables du schéma public
grant select
on all tables
in schema public
to anonyme;
-- Privilège par défaut pour que chaque nouvelle table créée dans public
-- donnera automatiquement le droit SELECT à anonyme.
alter default privileges
in schema public
grant select
on tables
to anonyme;

View File

@@ -1,5 +1,20 @@
create role postgraphile_user nosuperuser nocreatedb nocreaterole noinherit noreplication nobypassrls
login password '9013';
alter default privileges in schema public
grant select on tables to postgraphile_user;
grant usage
on schema public
to postgraphile_user;
-- Pour toutes les tables du schéma public
grant select
on all tables
in schema public
to postgraphile_user;
-- Privilège par défaut pour que chaque nouvelle table créée dans public
-- donnera automatiquement le droit SELECT à postgraphile_user.
alter default privileges
in schema public
grant select
on tables
to postgraphile_user;