This commit is contained in:
2024-04-21 14:42:52 +02:00
parent 4b69674ede
commit 8a25f53c99
10700 changed files with 55767 additions and 14201 deletions

9
Data/Metabase/.env Normal file
View File

@ -0,0 +1,9 @@
# Database environment
DB_NAME=metabase
DB_USER=metabase
DB_PASSWORD=password123
DB_DATA_DIR=/var/lib/postgresql/data
# Metabase environment
MB_PORT=3000
MB_JAVA_TIMEZONE=Asia/Tehran

3
Data/Metabase/LICENSE Normal file
View File

@ -0,0 +1,3 @@
Additional permission under GNU GPL version 3 section 7
If you modify this Program, or any covered work, by linking or combining it with [name of library] (or a modified version of that library), containing parts covered by the terms of [name of library's license], the licensors of this Program grant you additional permission to convey the resulting work. Corresponding Source for a non-source form of such a combination shall include the source code for the parts of [name of library] used as well as that of the covered work.

76
Data/Metabase/README.md Normal file
View File

@ -0,0 +1,76 @@
![Metabase](./img/logo-Metabase.png)
# Metabase
This Docker Compose configuration allows you to set up [Metabase](https://www.metabase.com/) along with a PostgreSQL database.
## Version
This configuration is designed for Metabase version 3.9.
## Services
### Metabase
- **Image**: metabase/metabase:latest
- **Container Name**: metabase
- **Hostname**: metabase
- **Volumes**:
- `/dev/urandom:/dev/random:ro`
- **Ports**:
- `3000:3000`
- **Environment Variables**:
- `MB_DB_TYPE`: postgres
- `MB_DB_DBNAME`: metabase
- `MB_DB_PORT`: 5432
- `MB_DB_USER_FILE`: /run/secrets/db_user
- `MB_DB_PASS_FILE`: /run/secrets/db_password
- `MB_DB_HOST`: postgres
- **Network**: metanet1
- **Secrets**:
- db_password
- db_user
- **Healthcheck**:
- Test: `curl --fail -I http://localhost:3000/api/health || exit 1`
- Interval: 15s
- Timeout: 5s
- Retries: 5
### PostgreSQL
- **Image**: postgres:latest
- **Container Name**: postgres
- **Hostname**: postgres
- **Environment Variables**:
- `POSTGRES_USER_FILE`: /run/secrets/db_user
- `POSTGRES_DB`: metabase
- `POSTGRES_PASSWORD_FILE`: /run/secrets/db_password
- **Network**: metanet1
- **Secrets**:
- db_password
- db_user
## Networks
- **Name**: metanet1
- **Driver**: bridge
## Secrets
### db_password
- **File**: db_password.txt
### db_user
- **File**: db_user.txt
## Usage
1. Make sure you have Docker and Docker Compose installed on your system.
2. Create the `db_password.txt` and `db_user.txt` files with your PostgreSQL password and username, respectively.
3. Run the following command to start Metabase and PostgreSQL:
```bash
docker-compose up -d

View File

@ -0,0 +1 @@
password123

View File

@ -0,0 +1 @@
metabase

View File

@ -0,0 +1,66 @@
![Fichier-Stockage](./img/logo-Fichier-Stockage.png)
URL : HHHHH
# Fichier-Stockage
GGGGG
# Téléchargement, Configuration et Lancement
## Téléchargement de Fichier-Stockage
Saisir la commande pour télécharger la source
```bash
git clone https://git.tips-of-mine.fr/Tips-Of-Mine/Docker.git
```
Saisir la commande pour vous rendre dans le dossier
```bash
cd AAAAA\Fichier-Stockage
```
## Modifier la configuration de Fichier-Stockage
Saisir la commande pour vous rendre dans le dossier
```bash
cd AAAAA\Fichier-Stockage
```
Nous éditons le fichier de configuration
```bash
nano .env
```
Nous modifions les variables dont nous avons besoin.
## Lancement de Fichier-Stockage
Pour utiliser Fichier-Stockage tout seul
```bash
docker compose up -d
```
Pour utiliser Fichier-Stockage avec Traefik
```bash
docker compose -f docker-compose-traefik.yml up -d
```
# Utilisation
## Accueil
Ouvrir une page web avec l'url :
Pour une utilisation tout seul
http://10.0.4.29:3000
Pour une utilisation avec Traefik
https://Fichier-Stockage.10.0.4.29.traefik.me`)"
# More info
- more information on the website [Tips-Of-Mine](https://www.tips-of-mine.fr/)
# Buy me a coffe
<a href='https://ko-fi.com/R5R2KNI3N' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi4.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>

View File

@ -0,0 +1,48 @@
version: '3.9'
services:
metabase:
image: metabase/metabase:latest
container_name: metabase
hostname: metabase
volumes:
- /dev/urandom:/dev/random:ro
ports:
- 3000:3000
environment:
MB_DB_TYPE: postgres
MB_DB_DBNAME: metabase
MB_DB_PORT: 5432
MB_DB_USER_FILE: /run/secrets/db_user
MB_DB_PASS_FILE: /run/secrets/db_password
MB_DB_HOST: postgres
networks:
- metanet1
secrets:
- db_password
- db_user
healthcheck:
test: curl --fail -I http://localhost:3000/api/health || exit 1
interval: 15s
timeout: 5s
retries: 5
postgres:
image: postgres:latest
container_name: postgres
hostname: postgres
environment:
POSTGRES_USER_FILE: /run/secrets/db_user
POSTGRES_DB: metabase
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
networks:
- metanet1
secrets:
- db_password
- db_user
networks:
metanet1:
driver: bridge
secrets:
db_password:
file: db_password.txt
db_user:
file: db_user.txt