all
This commit is contained in:
3
Base-de-donnees/Redis/LICENSE
Normal file
3
Base-de-donnees/Redis/LICENSE
Normal 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.
|
66
Base-de-donnees/Redis/README.md
Normal file
66
Base-de-donnees/Redis/README.md
Normal file
@ -0,0 +1,66 @@
|
||||

|
||||
URL :
|
||||
|
||||
# Redis
|
||||
|
||||
Redis est souvent appel? serveur de structures de donn?es. Cela signifie que Redis donne acc?s ? des structures de donn?es mutables via un ensemble de commandes, qui sont envoy?es ? l'aide d'un mod?le serveur-client avec des sockets TCP et un protocole simple. Ainsi, diff?rents processus peuvent interroger et modifier les m?mes structures de donn?es d'une mani?re partag?e. Ce r?f?rentiel construit Redis et t?l?charge divers composants (modules, RedisInsight) afin de construire des paquets redis-stack pour son processus d'IC.
|
||||
|
||||
# Téléchargement, Configuration et Lancement
|
||||
|
||||
## Téléchargement de Redis
|
||||
|
||||
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 Base-de-donnees\Redis
|
||||
```
|
||||
|
||||
## Modifier la configuration de Redis
|
||||
|
||||
Saisir la commande pour vous rendre dans le dossier
|
||||
```bash
|
||||
cd Base-de-donnees\Redis
|
||||
```
|
||||
|
||||
Nous éditons le fichier de configuration
|
||||
```bash
|
||||
nano .env
|
||||
```
|
||||
|
||||
Nous modifions les variables dont nous avons besoin.
|
||||
|
||||
## Lancement de Redis
|
||||
|
||||
Pour utiliser Redis tout seul
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
Pour utiliser Redis 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://Redis.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>
|
66
Base-de-donnees/Redis/docker-compose-traefik.yml
Normal file
66
Base-de-donnees/Redis/docker-compose-traefik.yml
Normal file
@ -0,0 +1,66 @@
|
||||

|
||||
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>
|
8
Base-de-donnees/Redis/docker-compose.yml
Normal file
8
Base-de-donnees/Redis/docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
||||
#### NETWORKS
|
||||
networks:
|
||||
back_network:
|
||||
driver: bridge
|
||||
attachable: true
|
||||
|
||||
#### SERVICES
|
||||
services:
|
BIN
Base-de-donnees/Redis/img/banniere-Redis.png
Normal file
BIN
Base-de-donnees/Redis/img/banniere-Redis.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
BIN
Base-de-donnees/Redis/img/logo-Redis.png
Normal file
BIN
Base-de-donnees/Redis/img/logo-Redis.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
4
Base-de-donnees/Redis/standalone/.gitignore
vendored
Normal file
4
Base-de-donnees/Redis/standalone/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
data
|
||||
data-replica
|
||||
.conf
|
||||
|
18
Base-de-donnees/Redis/standalone/conf/redis-commander.json
Normal file
18
Base-de-donnees/Redis/standalone/conf/redis-commander.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"connections": [
|
||||
{
|
||||
"label": "standalone",
|
||||
"host": "redis",
|
||||
"port": 6379,
|
||||
"password": "password",
|
||||
"dbIndex": 0
|
||||
},
|
||||
{
|
||||
"label": "replica",
|
||||
"host": "redis-replica",
|
||||
"port": 6379,
|
||||
"password": "password",
|
||||
"dbIndex": 0
|
||||
}
|
||||
]
|
||||
}
|
30
Base-de-donnees/Redis/standalone/conf/redis-replica.conf
Normal file
30
Base-de-donnees/Redis/standalone/conf/redis-replica.conf
Normal file
@ -0,0 +1,30 @@
|
||||
# All option are available at https://redis.io/docs/management/config-file/
|
||||
|
||||
# Bind to all interfaces
|
||||
bind 0.0.0.0
|
||||
|
||||
# Specify the port for Redis to listen on
|
||||
port 6379
|
||||
|
||||
# Enable slave mode
|
||||
replicaof redis 6379
|
||||
|
||||
# Enable persistence
|
||||
appendonly yes
|
||||
|
||||
# Set the path to the appendonly file
|
||||
appendfilename "appendonly.aof"
|
||||
|
||||
# Set the path to the directory containing the appendonly file
|
||||
dir /data-replica
|
||||
|
||||
# Set the path to the dump file
|
||||
dbfilename "dump.rdb"
|
||||
|
||||
# Set the path to the directory containing the dump file
|
||||
dir /data-replica
|
||||
|
||||
# Optional: Set a password for authentication
|
||||
masterauth password
|
||||
requirepass password
|
||||
|
29
Base-de-donnees/Redis/standalone/conf/redis.conf
Normal file
29
Base-de-donnees/Redis/standalone/conf/redis.conf
Normal file
@ -0,0 +1,29 @@
|
||||
# All option are available at https://redis.io/docs/management/config-file/
|
||||
# Bind to all interfaces
|
||||
bind 0.0.0.0
|
||||
|
||||
# Specify the port for Redis to listen on
|
||||
port 6379
|
||||
|
||||
# Enable master mode
|
||||
# replica-serve-stale-data no
|
||||
# replica-read-only yes
|
||||
replication-mode master
|
||||
|
||||
# Enable persistence
|
||||
appendonly yes
|
||||
|
||||
# Set the path to the appendonly file
|
||||
appendfilename "appendonly.aof"
|
||||
|
||||
# Set the path to the directory containing the appendonly file
|
||||
dir /data
|
||||
|
||||
# Set the path to the dump file
|
||||
dbfilename "dump.rdb"
|
||||
|
||||
# Set the path to the directory containing the dump file
|
||||
dir /data
|
||||
|
||||
# Optional: Set a password for authentication
|
||||
requirepass password
|
49
Base-de-donnees/Redis/standalone/docker-compose.yml
Normal file
49
Base-de-donnees/Redis/standalone/docker-compose.yml
Normal file
@ -0,0 +1,49 @@
|
||||
version: '3.9'
|
||||
|
||||
services:
|
||||
redis:
|
||||
build:
|
||||
context: ./docker
|
||||
dockerfile: redis.Dockerfile
|
||||
container_name: redis
|
||||
ports:
|
||||
- '6379:6379'
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- .conf/redis.conf:/usr/local/etc/redis/redis.conf
|
||||
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
|
||||
healthcheck:
|
||||
test: redis-cli ping
|
||||
start_period: 15s
|
||||
interval: 5s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
|
||||
redis-replica:
|
||||
build:
|
||||
context: ./docker
|
||||
dockerfile: redis.Dockerfile
|
||||
container_name: redis-replica
|
||||
ports:
|
||||
- '6380:6379'
|
||||
volumes:
|
||||
- ./data-replica:/data
|
||||
- .conf/redis-replica.conf:/usr/local/etc/redis/redis.conf
|
||||
command: ["redis-server", "/usr/local/etc/redis/redis.conf", "--slaveof", "redis", "6379"]
|
||||
healthcheck:
|
||||
test: redis-cli ping
|
||||
start_period: 15s
|
||||
interval: 5s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
|
||||
|
||||
redis-commander:
|
||||
container_name: redis-commander
|
||||
hostname: redis-commander
|
||||
image: ghcr.io/joeferner/redis-commander:latest
|
||||
restart: always
|
||||
volumes:
|
||||
- ./conf/redis-commander.json:/redis-commander/config/local-production.json
|
||||
ports:
|
||||
- "8081:8081"
|
1
Base-de-donnees/Redis/standalone/docker/redis.Dockerfile
Normal file
1
Base-de-donnees/Redis/standalone/docker/redis.Dockerfile
Normal file
@ -0,0 +1 @@
|
||||
FROM redis:latest
|
Reference in New Issue
Block a user