Initial commit

This commit is contained in:
Lucas
2025-06-04 12:48:00 +00:00
commit 38bbe88d33
183 changed files with 15726 additions and 0 deletions

0
.gitignore vendored Normal file
View File

4
Caddyfile Normal file
View File

@@ -0,0 +1,4 @@
:80 {
root * /srv
file_server
}

45
README.md Normal file
View File

@@ -0,0 +1,45 @@
## Site web Caddy avec Docker Compose
Un site web est un ensemble de pages web accessibles via Internet, généralement regroupées sous un même domaine. Ces pages peuvent contenir des informations sous forme de texte, images, vidéos, ou autres médias. https://caddyserver.com/
## Prérequis
- Git, Docker & Docker Compose installés
- Cette installation est faite pour fonctionner derrière un reverse-proxy. Exemple ici : https://gitea.lucasroyer.fr/server/reverse-proxy
## Installation
1. Clonez ce dépôt :
```bash
git clone https://gitea.lucasroyer.fr/server/gitea.git
cd gitea
```
2. Modifiez app.env pour ajouter un mot de passe en remplaçant `mypassword` :
```bash
cp app.public.env app.env
nano app.env
```
```ini
GITEA__database__DB_TYPE=postgres
GITEA__database__HOST=db:5432
GITEA__database__NAME=gitea
GITEA__database__USER=gitea
GITEA__database__PASSWD=mypassword #replace
```
2. Modifiez db.env avec le même mot de passe :
```bash
cp db.public.env db.env
nano db.env
```
```ini
POSTGRES_USER=gitea
POSTGRES_PASSWORD=mypassword #replace
POSTGRES_DB=gitea
```
4. Lancez et surveillez les conteneurs :
```bash
sudo docker compose up -d
sudo docker compose logs -f
```

14
docker-compose.yml Normal file
View File

@@ -0,0 +1,14 @@
services:
web:
image: caddy:latest
container_name: site-veloboomboom
restart: always
volumes:
- /home/lucas/site-veloboomboom/html:/srv # Dossier contenant les fichiers statiques
- /home/lucas/site-veloboomboom/Caddyfile:/etc/caddy/Caddyfile # Fichier de configuration de Caddy
networks:
- reverse-proxy
networks:
reverse-proxy:
external: true

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More