couchdb
This commit is contained in:
@@ -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}}"
|
||||
|
||||
17
couchdb.http
17
couchdb.http
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user