122 lines
2.8 KiB
Markdown
122 lines
2.8 KiB
Markdown
# Joplin
|
|
|
|
|
|
|
|
### Serveur Joplin:
|
|
|
|
https://github.com/laurent22/joplin/blob/dev/packages/server/README.md
|
|
|
|
#### Créer les dossiers:
|
|
|
|
```bash
|
|
mkdir /volume1/docker/joplin
|
|
mkdir /volume1/docker/joplin/data
|
|
```
|
|
|
|
#### Créer le fichier `docker-compose.yml` dans `/volume1/docker/joplin`:
|
|
|
|
```bash
|
|
$ nano docker-compose.yml
|
|
```
|
|
|
|
```yaml title="docker-compose.yml"
|
|
version: '3'
|
|
|
|
services:
|
|
db:
|
|
image: postgres:13.1
|
|
ports:
|
|
- "5432:5432"
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /volume1/docker/joplin/data:/var/lib/postgresql/data
|
|
environment:
|
|
- APP_PORT=22300
|
|
- POSTGRES_PASSWORD=joplin
|
|
- POSTGRES_USER=joplin
|
|
- POSTGRES_DB=joplin
|
|
app:
|
|
image: joplin/server:latest
|
|
depends_on:
|
|
- db
|
|
ports:
|
|
- "22300:22300"
|
|
restart: unless-stopped
|
|
environment:
|
|
- APP_BASE_URL=https://clicclac.synology.me:22301
|
|
- DB_CLIENT=pg
|
|
- POSTGRES_PASSWORD=joplin
|
|
- POSTGRES_DATABASE=joplin
|
|
- POSTGRES_USER=joplin
|
|
- POSTGRES_PORT=5432
|
|
- POSTGRES_HOST=db
|
|
|
|
```
|
|
|
|
#### Créer le container:
|
|
|
|
```bash
|
|
sudo docker-compose up -d
|
|
|
|
Creating network "joplin_default" with the default driver
|
|
Pulling app (joplin/server:latest)...
|
|
latest: Pulling from joplin/server
|
|
...
|
|
Digest: sha256:5c4cd651d4dae4ce85e252efc9262856d07dd8e0cf9a9a2c077a36c9631883cb
|
|
Status: Downloaded newer image for joplin/server:latest
|
|
Creating joplin_db_1 ... done
|
|
Creating joplin_app_1 ... done
|
|
```
|
|
|
|
Le serveur est disponible en local sur: http://dsm916.local:22300
|
|
|
|
#### Créer une règle de proxy-inverse:
|
|
|
|
Panneau de configuration :material-arrow-right: Portail des applications :material-arrow-right: Proxy inversé :material-arrow-right: Créer:
|
|
|
|
Source:
|
|
|
|
- Protocole: HTTPS
|
|
- Nom d'hôte: clicclac.synology.me
|
|
- Port: 22301
|
|
- Activer HTTP/2
|
|
|
|
Destination:
|
|
|
|
- Protocole: HTTP
|
|
- Nom d'hôte: localhost
|
|
- Port: 22300
|
|
|
|
Le serveur est disponible depuis l'extérieur sur: https://clicclac.synology.me:22301
|
|
|
|
On se connecte à https://clicclac.synology.me:22301/login en administrateur avec l'utilisateur **admin@localhost** et le mot-de-passe **admin**, puis on change l'émail et la password. On peut un utilisateur non-admin juste pour la synchro avec les clients Joplin.
|
|
|
|
#### Voir les logs:
|
|
|
|
```bash
|
|
sudo docker-compose --file docker-compose.yml logs
|
|
Password:
|
|
|
|
Attaching to joplin_app_1, joplin_db_1
|
|
app_1 | WARNING: no logs are available with the 'db' log driver
|
|
db_1 | WARNING: no logs are available with the 'db' log driver
|
|
```
|
|
|
|
|
|
|
|
### Application Joplin
|
|
|
|
Préférences :material-arrow-right: Synchronisation:
|
|
|
|
Cible de la synchronisation: Joplin Server
|
|
|
|
Serveur Joplin:
|
|
|
|
- URL: https://clicclac.synology.me:22301
|
|
- Dossier: home
|
|
- Utilisateur: bruno@xxx.info
|
|
- Mot de passe: xxxxx
|
|
|
|
|
|
|