Add Homarr-App

This commit is contained in:
Hubert Cornet 2024-04-21 17:32:06 +02:00
parent a9e71c5f6b
commit f6bc8b439e
4 changed files with 58 additions and 66 deletions

View File

@ -52,7 +52,7 @@ docker compose -f docker-compose-traefik.yml up -d
Ouvrir une page web avec l'url : Ouvrir une page web avec l'url :
Pour une utilisation tout seul Pour une utilisation tout seul
http://10.0.4.29:3000 http://10.0.4.29:7575
Pour une utilisation avec Traefik Pour une utilisation avec Traefik

View File

@ -1,66 +1,39 @@
![Fichier-Stockage](./img/logo-Fichier-Stockage.png) #### NETWORKS
URL : HHHHH networks:
docker-traefik_front_network:
external: true
back_network:
driver: bridge
attachable: true
# Fichier-Stockage #### SERVICES
services:
GGGGG ### homarr
homarr:
# Téléchargement, Configuration et Lancement container_name: homarr-app
hostname: homarr-app
## Téléchargement de Fichier-Stockage image: ghcr.io/ajnart/homarr:latest
restart: unless-stopped
Saisir la commande pour télécharger la source volumes:
```bash - /var/run/docker.sock:/var/run/docker.sock
git clone https://git.tips-of-mine.fr/Tips-Of-Mine/Docker.git - ./configs:/app/data/configs
``` - ./icons:/app/public/icons
- ./data:/data
Saisir la commande pour vous rendre dans le dossier environment:
```bash - TZ=Europe/Paris
cd AAAAA\Fichier-Stockage networks:
``` - docker-traefik_front_network
labels:
## Modifier la configuration de Fichier-Stockage - "traefik.enable=true"
- "traefik.docker.network=docker-traefik_front_network"
Saisir la commande pour vous rendre dans le dossier ## HTTP
```bash - "traefik.http.routers.homarr-http.rule=Host(`homarr.10.0.4.29.traefik.me`)"
cd AAAAA\Fichier-Stockage - "traefik.http.routers.homarr-http.entrypoints=http"
``` ## HTTPS
- "traefik.http.routers.homarr-https.rule=Host(`homarr.10.0.4.29.traefik.me`)"
Nous éditons le fichier de configuration - "traefik.http.routers.homarr-https.entrypoints=https"
```bash - "traefik.http.routers.homarr-https.tls=true"
nano .env - "traefik.http.routers.homarr.service=homarr-service"
``` ## Middleware
## Service
Nous modifions les variables dont nous avons besoin. - "traefik.http.services.homarr-service.loadbalancer.server.port=7575"
## 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

@ -6,3 +6,20 @@ networks:
#### SERVICES #### SERVICES
services: services:
### homarr
homarr:
container_name: homarr-app
hostname: homarr-app
image: ghcr.io/ajnart/homarr:latest
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./configs:/app/data/configs
- ./icons:/app/public/icons
- ./data:/data
ports:
- '7575:7575'
environment:
- TZ=Europe/Paris
networks:
- back_network

View File

@ -20,4 +20,6 @@ services:
- TZ=Europe/Paris - TZ=Europe/Paris
ports: ports:
- "5000:5000" - "5000:5000"
networks:
- back_network
restart: unless-stopped restart: unless-stopped