Initial commit for archive

This commit is contained in:
Lucas
2025-11-07 16:40:16 +00:00
commit fefe0b0419
5 changed files with 90 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
data/
app.env
db.env

45
README.md Normal file
View File

@@ -0,0 +1,45 @@
## Joplin avec Docker Compose
Joplin est une application open-source de prise de notes et de gestion de tâches qui permet de synchroniser les notes entre différents appareils. Il supporte le format markdown et le chiffrement des données. https://joplinapp.org/
## 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
```

8
app-public.env Normal file
View File

@@ -0,0 +1,8 @@
APP_PORT=22300
APP_BASE_URL=https://joplin.lmydomain.fr
DB_CLIENT=pg
POSTGRES_PASSWORD=mypassword
POSTGRES_DATABASE=joplin
POSTGRES_USER=joplin
POSTGRES_PORT=5432
POSTGRES_HOST=db

3
db-public.env Normal file
View File

@@ -0,0 +1,3 @@
POSTGRES_PASSWORD=mypassword
POSTGRES_USER=joplin
POSTGRES_DB=joplin

31
docker-compose.yml Normal file
View File

@@ -0,0 +1,31 @@
services:
db:
image: postgres:13.1
container_name: joplin-db
restart: always
volumes:
- /mnt/blockstorage-1/joplin/postgres:/var/lib/postgresql/data
env_file:
- db.env
networks:
- joplin
app:
image: joplin/server:latest
container_name: joplin-app
depends_on:
- db
restart: always
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
env_file:
- app.env
networks:
- joplin
- reverse-proxy
networks:
joplin:
reverse-proxy:
external: true