File tree Expand file tree Collapse file tree 1 file changed +26
-17
lines changed Expand file tree Collapse file tree 1 file changed +26
-17
lines changed Original file line number Diff line number Diff line change 3
3
# tags: joplin
4
4
# logo: svgs/joplin.png
5
5
# port: 22300
6
- version : ' 3 '
6
+
7
7
services :
8
- db :
8
+ postgres :
9
9
image : ' postgres:16'
10
10
volumes :
11
- - ' ./data/postgres:/var/lib/postgresql/data'
12
- restart : unless-stopped
11
+ - joplin-postgresql-data:/var/lib/postgresql/data'
13
12
environment :
14
- - POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
15
- - POSTGRES_USER=$SERVICE_USER_POSTGRES
13
+ - POSTGRES_PASSWORD=${SERVICE_PASSWORD_64_POSTGRES}
14
+ - POSTGRES_USER=${ SERVICE_USER_POSTGRES}
16
15
- POSTGRES_DB=joplin
17
- app :
16
+ healthcheck :
17
+ test :
18
+ - CMD
19
+ - pg_isready
20
+ - -d
21
+ - joplin
22
+ interval : 10s
23
+ timeout : 5s
24
+ retries : 5
25
+
26
+ joplin :
18
27
image : ' joplin/server:latest'
28
+ platform : ' linux/amd64'
19
29
depends_on :
20
- - db
21
- ports :
22
- - ' 22300:22300'
23
- restart : unless-stopped
30
+ postgres :
31
+ condition : service_healthy
24
32
environment :
25
- - APP_PORT=22300
26
- - APP_BASE_URL=$SERVICE_FQDN_JOPLIN
33
+ - SERVICE_FQDN_JOPLIN_22300
34
+ - APP_BASE_URL=${ SERVICE_FQDN_JOPLIN}
27
35
- DB_CLIENT=pg
28
- - POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
36
+ - POSTGRES_PASSWORD=${SERVICE_PASSWORD_64_POSTGRES}
29
37
- POSTGRES_DATABASE=joplin
30
- - POSTGRES_USER=$SERVICE_USER_POSTGRES
38
+ - POSTGRES_USER=${ SERVICE_USER_POSTGRES}
31
39
- POSTGRES_PORT=5432
32
- - POSTGRES_HOST=db
33
-
40
+ - POSTGRES_HOST=postgres
41
+ # Default login is "admin@localhost" and password "admin"
42
+
You can’t perform that action at this time.
0 commit comments