Fungsi
Joplin adalah aplikasi note-taking. Ianya lengkap dengan software di kesemua platform (desktop, mobile, tab).
Environment
- Ubuntu 22.04 LTS
- Docker 20.10.12
Install docker
1
2
| sudo apt install docker.io
sudo apt install docker-compose
|
Bina folder
1
2
| mkdir joplin
cd joplin
|
Bina docker-compose.yaml file
1
| touch docker-compose.yaml
|
Edit docker-compose.yaml file
1
| nano docker-compose.yaml
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
| version: '3'
services:
joplin-db:
image: postgres:13
volumes:
- joplin-db:/var/lib/postgresql/data
ports:
- 5432
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=joplin-password
- POSTGRES_USER=joplin
- POSTGRES_DB=joplin
networks:
joplin-back-network:
joplin-app:
image: joplin/server:latest
depends_on:
- joplin-db
ports:
- "22300:22300" # hostport:containerport
restart: unless-stopped
environment:
- APP_PORT=22300
- APP_BASE_URL=https://joplin.your-domain.com
- DB_CLIENT=pg
- POSTGRES_PASSWORD=joplin-password
- POSTGRES_DATABASE=joplin
- POSTGRES_USER=joplin
- POSTGRES_PORT=5432
- POSTGRES_HOST=joplin-db
networks:
joplin-back-network:
networks:
joplin-back-network:
driver: bridge
volumes:
joplin-db:
|
Edit docker-compose.yaml file dengan SMTP setting
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
| version: '3'
services:
joplin-db:
image: postgres:13
volumes:
- joplin-db:/var/lib/postgresql/data
ports:
- 5432
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=joplin-password
- POSTGRES_USER=joplin
- POSTGRES_DB=joplin
networks:
joplin-back-network:
joplin-app:
image: joplin/server:latest
depends_on:
- joplin-db
ports:
- "22300:22300" # hostport:containerport
restart: unless-stopped
environment:
- APP_PORT=22300
- APP_BASE_URL=https://joplin.your-domain.com
- DB_CLIENT=pg
- POSTGRES_PASSWORD=joplin-password
- POSTGRES_DATABASE=joplin
- POSTGRES_USER=joplin
- POSTGRES_PORT=5432
- POSTGRES_HOST=joplin-db
- MAILER_ENABLED=1
- MAILER_HOST=mail.smtp.com
- MAILER_PORT=465
- MAILER_SECURE=1
- MAILER_AUTH_USER=USERNAME_HERE
- MAILER_AUTH_PASSWORD=PASSWORD_HERE
- MAILER_NOREPLY_NAME=JoplinServer
- [email protected]
networks:
joplin-back-network:
networks:
joplin-back-network:
driver: bridge
volumes:
joplin-db:
|
Run docker-compose
1
| sudo docker-compose up -d
|
Login ke admin UI
http://localhost:22300/
Username: admin@localhost Password: admin
Link berguna