Caddy dynamique
This commit is contained in:
4
Caddyfile
Normal file
4
Caddyfile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
*.localhost {
|
||||||
|
reverse_proxy pgadmin:80
|
||||||
|
tls internal
|
||||||
|
}
|
||||||
@@ -31,3 +31,9 @@ psql -h 127.0.0.1 -d sql -U sql -c "\copy (select id, source, target, cost, reve
|
|||||||
### Jeux de données
|
### Jeux de données
|
||||||
|
|
||||||
- https://www.kaggle.com/datasets/alexandrelemercier/food-detailed-nutritional-content
|
- https://www.kaggle.com/datasets/alexandrelemercier/food-detailed-nutritional-content
|
||||||
|
|
||||||
|
|
||||||
|
### Administration
|
||||||
|
|
||||||
|
pgAdmin est un outil d’administration et de gestion pour PostgreSQL.
|
||||||
|
C’est l’équivalent d’un « phpMyAdmin » pour MySQL, mais conçu pour PostgreSQL.
|
||||||
|
|||||||
42
compose.yaml
42
compose.yaml
@@ -4,13 +4,31 @@ services:
|
|||||||
# Web server, load balancer, and reverse proxy
|
# Web server, load balancer, and reverse proxy
|
||||||
# https://caddyserver.com/
|
# https://caddyserver.com/
|
||||||
caddy:
|
caddy:
|
||||||
image: caddy:2.10.2
|
image: lucaslorentz/caddy-docker-proxy:2.10
|
||||||
restart: "no"
|
restart: "no"
|
||||||
ports:
|
ports:
|
||||||
- "8019:80"
|
- 80:80
|
||||||
|
- 443:443/tcp
|
||||||
|
- 443:443/udp
|
||||||
- "2019:2019"
|
- "2019:2019"
|
||||||
|
networks:
|
||||||
|
- caddy_net
|
||||||
|
environment:
|
||||||
|
CADDY_INGRESS_NETWORKS: caddy_net
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/usr/share/caddy
|
- ./data:/usr/share/caddy
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
labels:
|
||||||
|
caddy_admin: "off"
|
||||||
|
|
||||||
|
whoami:
|
||||||
|
image: traefik/whoami
|
||||||
|
networks:
|
||||||
|
- caddy_net
|
||||||
|
labels:
|
||||||
|
caddy: whoami.localhost
|
||||||
|
caddy.reverse_proxy: "{{upstreams 80}}"
|
||||||
|
caddy.tls: internal
|
||||||
|
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
# Base de données relationnelles
|
# Base de données relationnelles
|
||||||
@@ -51,12 +69,16 @@ services:
|
|||||||
target: /pgadmin4/servers.json
|
target: /pgadmin4/servers.json
|
||||||
volumes:
|
volumes:
|
||||||
- pgadmin:/var/lib/pgadmin/
|
- pgadmin:/var/lib/pgadmin/
|
||||||
ports:
|
|
||||||
- "3009:80"
|
|
||||||
environment:
|
environment:
|
||||||
PGADMIN_DEFAULT_EMAIL: ${ADMIN_EMAIL}
|
PGADMIN_DEFAULT_EMAIL: ${ADMIN_EMAIL}
|
||||||
PGADMIN_DEFAULT_PASSWORD: ${ADMIN_PASSWORD}
|
PGADMIN_DEFAULT_PASSWORD: ${ADMIN_PASSWORD}
|
||||||
PGADMIN_DISABLE_POSTFIX: true
|
PGADMIN_DISABLE_POSTFIX: true
|
||||||
|
networks:
|
||||||
|
- caddy_net
|
||||||
|
labels:
|
||||||
|
caddy: pgadmin.localhost
|
||||||
|
caddy.reverse_proxy: "{{upstreams 80}}"
|
||||||
|
caddy.tls: internal
|
||||||
profiles:
|
profiles:
|
||||||
- admin
|
- admin
|
||||||
|
|
||||||
@@ -206,8 +228,7 @@ services:
|
|||||||
# https://www.graphile.org/postgraphile/
|
# https://www.graphile.org/postgraphile/
|
||||||
|
|
||||||
postgraphile:
|
postgraphile:
|
||||||
build:
|
image: iut/postgraphile:2025-12
|
||||||
context: ./postgraphile
|
|
||||||
restart: "no"
|
restart: "no"
|
||||||
depends_on:
|
depends_on:
|
||||||
database:
|
database:
|
||||||
@@ -232,8 +253,8 @@ services:
|
|||||||
- PGPASSWORD=${DB_PASSWORD}
|
- PGPASSWORD=${DB_PASSWORD}
|
||||||
- PGDATABASE=${COMPOSE_PROJECT_NAME}
|
- PGDATABASE=${COMPOSE_PROJECT_NAME}
|
||||||
profiles:
|
profiles:
|
||||||
- api
|
- api2
|
||||||
- graph
|
- graph2
|
||||||
|
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
# Web API
|
# Web API
|
||||||
@@ -340,6 +361,7 @@ services:
|
|||||||
- telemetry
|
- telemetry
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
caddy_config:
|
||||||
pgadmin:
|
pgadmin:
|
||||||
database_data:
|
database_data:
|
||||||
superset_home:
|
superset_home:
|
||||||
@@ -355,3 +377,7 @@ volumes:
|
|||||||
configs:
|
configs:
|
||||||
pgadmin_config:
|
pgadmin_config:
|
||||||
file: ./pgadmin-servers.json
|
file: ./pgadmin-servers.json
|
||||||
|
|
||||||
|
networks:
|
||||||
|
caddy_net:
|
||||||
|
driver: bridge
|
||||||
|
|||||||
Reference in New Issue
Block a user