Initial commit
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
vw-data/
|
||||||
|
app.env
|
||||||
45
README.md
Normal file
45
README.md
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
## Site web Caddy avec Docker Compose
|
||||||
|
|
||||||
|
Vaultwarden est une version auto-hébergeable de Bitwarden, un gestionnaire de mots de passe open-source. Il permet de stocker, partager et synchroniser des mots de passe de manière sécurisée. https://github.com/dani-garcia/vaultwarden
|
||||||
|
|
||||||
|
## 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
|
||||||
|
```
|
||||||
2
app-public.env
Normal file
2
app-public.env
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
WEBSOCKET_ENABLED=true
|
||||||
|
ADMIN_TOKEN=
|
||||||
15
docker-compose.yml
Normal file
15
docker-compose.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
services:
|
||||||
|
vaultwarden:
|
||||||
|
image: vaultwarden/server:latest
|
||||||
|
container_name: vaultwarden
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ./vw-data:/data
|
||||||
|
env_file:
|
||||||
|
- app.env
|
||||||
|
networks:
|
||||||
|
- reverse-proxy
|
||||||
|
|
||||||
|
networks:
|
||||||
|
reverse-proxy:
|
||||||
|
external: true
|
||||||
Reference in New Issue
Block a user