77 lines
2.2 KiB
YAML
77 lines
2.2 KiB
YAML
|
|
# ----------------------------------------------------------------------
|
||
|
|
# Business Intelligence
|
||
|
|
#
|
||
|
|
# ----------------------------------------------------------------------
|
||
|
|
|
||
|
|
superset:
|
||
|
|
image: apache/superset:3.1.3
|
||
|
|
depends_on:
|
||
|
|
database:
|
||
|
|
condition: service_healthy
|
||
|
|
environment:
|
||
|
|
SUPERSET_CONFIG_PATH: /app/pythonpath/superset_config.py
|
||
|
|
SUPERSET_SECRET_KEY: ${SUPERSET_SECRET:-YOUR_OWN_RANDOM_GENERATED_SECRET_KEY}
|
||
|
|
SUPERSET_LOAD_EXAMPLES: no
|
||
|
|
volumes:
|
||
|
|
- superset_home:/app/superset_home
|
||
|
|
- ./superset_config.py:/app/pythonpath/superset_config.py:Z
|
||
|
|
command: >
|
||
|
|
sh -c "
|
||
|
|
superset db upgrade &&
|
||
|
|
superset fab create-admin --username admin --firstname Admin --lastname User --email admin@superset.com --password admin &&
|
||
|
|
superset init &&
|
||
|
|
superset run -h 0.0.0.0 -p 80 --with-threads --reload --debugger
|
||
|
|
"
|
||
|
|
networks:
|
||
|
|
- caddy_net
|
||
|
|
labels:
|
||
|
|
caddy: superset.localhost
|
||
|
|
caddy.reverse_proxy: "{{upstreams 80}}"
|
||
|
|
caddy.tls: internal
|
||
|
|
profiles:
|
||
|
|
- bi
|
||
|
|
|
||
|
|
metabase:
|
||
|
|
image: metabase/metabase:v0.56.5.5
|
||
|
|
depends_on:
|
||
|
|
database:
|
||
|
|
condition: service_healthy
|
||
|
|
volumes:
|
||
|
|
- /dev/urandom:/dev/random:ro
|
||
|
|
environment:
|
||
|
|
MB_DB_TYPE: postgres
|
||
|
|
MB_DB_HOST: ${MB_DB_HOST:-database}
|
||
|
|
MB_DB_PORT: 5432
|
||
|
|
MB_DB_USER: metabase_user
|
||
|
|
MB_DB_PASS: ${DB_ROOT_PASSWORD:-supermotdepasse}
|
||
|
|
MB_DB_DBNAME: metabase
|
||
|
|
MB_SITE_LOCALE: fr
|
||
|
|
MB_ADMIN_EMAIL: etudiant@univ-lorraine.fr
|
||
|
|
MB_ANON_TRACKING_ENABLED: false
|
||
|
|
MB_CHECK_FOR_UPDATES: false
|
||
|
|
MB_NO_SURVEYS: yes
|
||
|
|
MB_START_OF_WEEK: monday
|
||
|
|
MB_CUSTOM_FORMATTING: '{"type/Temporal":{"time_style":"HH:mm","date_style":"D MMMM, YYYY","date_abbreviate":true},"type/Currency":{"currency":"EUR"},"type/Number":{"number_separators":", "}}'
|
||
|
|
MB_EMAIL_SMTP_HOST: mailpit
|
||
|
|
MB_EMAIL_SMTP_PORT: 1025
|
||
|
|
MB_EMAIL_FROM_ADDRESS: metabase@univ-lorraine.fr
|
||
|
|
networks:
|
||
|
|
- caddy_net
|
||
|
|
labels:
|
||
|
|
caddy: superset.localhost
|
||
|
|
caddy.reverse_proxy: "{{upstreams 80}}"
|
||
|
|
caddy.tls: internal
|
||
|
|
profiles:
|
||
|
|
- bi
|
||
|
|
|
||
|
|
metabase-init:
|
||
|
|
build:
|
||
|
|
context: ./metabase
|
||
|
|
depends_on:
|
||
|
|
- metabase
|
||
|
|
profiles:
|
||
|
|
- bi
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
superset_home:
|