detached e354029

docs: update PostgreSQL examples from 15 to 18

commit
e354029874ea08d72fb1c0cda7952ee96aeb8df5
author
brice · · 2026-01-17 15:30 UTC
parent
27c6ff9
signature
unsigned
6 files · +26 -26
M docs/cli/attachments.md +11 -11
@@ -18,8 +18,8 @@ Manage attachments on local or remote Gordon instances.
1818
1919 ```bash
2020 gordon attach list
21-gordon attach add app.example.com postgres:15
22-gordon attach remove app.example.com postgres:15
21+gordon attach add app.example.com postgres:18
22+gordon attach remove app.example.com postgres:18
2323 ```
2424
2525 ---
@@ -45,8 +45,8 @@ gordon attachments list --remote https://gordon.mydomain.com --token $TOKEN
4545 ```
4646 Target Attachments
4747 --------------------------------------------------------------------------------
48-app.example.com postgres:15, redis:7-alpine
49-api.example.com postgres:15
48+app.example.com postgres:18, redis:7-alpine
49+api.example.com postgres:18
5050 backend (group) rabbitmq:3-management
5151 ```
5252
@@ -58,7 +58,7 @@ Add an attachment to a domain or network group.
5858
5959 ```bash
6060 gordon attachments add <domain-or-group> <image>
61-gordon attachments add app.example.com postgres:15
61+gordon attachments add app.example.com postgres:18
6262 gordon attachments add backend redis:7-alpine
6363 ```
6464
@@ -80,13 +80,13 @@ gordon attachments add backend redis:7-alpine
8080
8181 ```bash
8282 # Add database to a domain
83-gordon attachments add app.example.com postgres:15
83+gordon attachments add app.example.com postgres:18
8484
8585 # Add cache to a network group (shared by all domains in the group)
8686 gordon attachments add backend redis:7-alpine
8787
8888 # Remote
89-gordon attachments add app.example.com postgres:15 --remote https://gordon.mydomain.com --token $TOKEN
89+gordon attachments add app.example.com postgres:18 --remote https://gordon.mydomain.com --token $TOKEN
9090 ```
9191
9292 ---
@@ -97,7 +97,7 @@ Remove an attachment.
9797
9898 ```bash
9999 gordon attachments remove <domain-or-group> <image>
100-gordon attachments remove app.example.com postgres:15
100+gordon attachments remove app.example.com postgres:18
101101 ```
102102
103103 ### Arguments
@@ -118,13 +118,13 @@ gordon attachments remove app.example.com postgres:15
118118
119119 ```bash
120120 # Remove database from a domain
121-gordon attachments remove app.example.com postgres:15
121+gordon attachments remove app.example.com postgres:18
122122
123123 # Remove from network group
124124 gordon attachments remove backend redis:7-alpine
125125
126126 # Remote
127-gordon attachments remove app.example.com postgres:15 --remote https://gordon.mydomain.com --token $TOKEN
127+gordon attachments remove app.example.com postgres:18 --remote https://gordon.mydomain.com --token $TOKEN
128128 ```
129129
130130 ---
@@ -135,7 +135,7 @@ gordon attachments remove app.example.com postgres:15 --remote https://gordon.my
135135
136136 ```bash
137137 # Add PostgreSQL database
138-gordon attachments add app.example.com postgres:15
138+gordon attachments add app.example.com postgres:18
139139
140140 # Add Redis cache
141141 gordon attachments add app.example.com redis:7-alpine
@@ -18,8 +18,8 @@ Manage attachments on local or remote Gordon instances.
18 18
19 ```bash19 ```bash
20 gordon attach list20 gordon attach list
21-gordon attach add app.example.com postgres:1521+gordon attach add app.example.com postgres:18
22-gordon attach remove app.example.com postgres:1522+gordon attach remove app.example.com postgres:18
23 ```23 ```
24 24
25 ---25 ---
@@ -45,8 +45,8 @@ gordon attachments list --remote https://gordon.mydomain.com --token $TOKEN
45 ```45 ```
46 Target Attachments46 Target Attachments
47 --------------------------------------------------------------------------------47 --------------------------------------------------------------------------------
48-app.example.com postgres:15, redis:7-alpine48+app.example.com postgres:18, redis:7-alpine
49-api.example.com postgres:1549+api.example.com postgres:18
50 backend (group) rabbitmq:3-management50 backend (group) rabbitmq:3-management
51 ```51 ```
52 52
@@ -58,7 +58,7 @@ Add an attachment to a domain or network group.
58 58
59 ```bash59 ```bash
60 gordon attachments add <domain-or-group> <image>60 gordon attachments add <domain-or-group> <image>
61-gordon attachments add app.example.com postgres:1561+gordon attachments add app.example.com postgres:18
62 gordon attachments add backend redis:7-alpine62 gordon attachments add backend redis:7-alpine
63 ```63 ```
64 64
@@ -80,13 +80,13 @@ gordon attachments add backend redis:7-alpine
80 80
81 ```bash81 ```bash
82 # Add database to a domain82 # Add database to a domain
83-gordon attachments add app.example.com postgres:1583+gordon attachments add app.example.com postgres:18
84 84
85 # Add cache to a network group (shared by all domains in the group)85 # Add cache to a network group (shared by all domains in the group)
86 gordon attachments add backend redis:7-alpine86 gordon attachments add backend redis:7-alpine
87 87
88 # Remote88 # Remote
89-gordon attachments add app.example.com postgres:15 --remote https://gordon.mydomain.com --token $TOKEN89+gordon attachments add app.example.com postgres:18 --remote https://gordon.mydomain.com --token $TOKEN
90 ```90 ```
91 91
92 ---92 ---
@@ -97,7 +97,7 @@ Remove an attachment.
97 97
98 ```bash98 ```bash
99 gordon attachments remove <domain-or-group> <image>99 gordon attachments remove <domain-or-group> <image>
100-gordon attachments remove app.example.com postgres:15100+gordon attachments remove app.example.com postgres:18
101 ```101 ```
102 102
103 ### Arguments103 ### Arguments
@@ -118,13 +118,13 @@ gordon attachments remove app.example.com postgres:15
118 118
119 ```bash119 ```bash
120 # Remove database from a domain120 # Remove database from a domain
121-gordon attachments remove app.example.com postgres:15121+gordon attachments remove app.example.com postgres:18
122 122
123 # Remove from network group123 # Remove from network group
124 gordon attachments remove backend redis:7-alpine124 gordon attachments remove backend redis:7-alpine
125 125
126 # Remote126 # Remote
127-gordon attachments remove app.example.com postgres:15 --remote https://gordon.mydomain.com --token $TOKEN127+gordon attachments remove app.example.com postgres:18 --remote https://gordon.mydomain.com --token $TOKEN
128 ```128 ```
129 129
130 ---130 ---
@@ -135,7 +135,7 @@ gordon attachments remove app.example.com postgres:15 --remote https://gordon.my
135 135
136 ```bash136 ```bash
137 # Add PostgreSQL database137 # Add PostgreSQL database
138-gordon attachments add app.example.com postgres:15138+gordon attachments add app.example.com postgres:18
139 139
140 # Add Redis cache140 # Add Redis cache
141 gordon attachments add app.example.com redis:7-alpine141 gordon attachments add app.example.com redis:7-alpine
M docs/cli/index.md +2 -2
@@ -55,8 +55,8 @@ gordon routes deploy myapp.example.com
5555
5656 # Attachments
5757 gordon attachments list
58-gordon attachments add app.example.com postgres:15
59-gordon attachments remove app.example.com postgres:15
58+gordon attachments add app.example.com postgres:18
59+gordon attachments remove app.example.com postgres:18
6060
6161 # Secrets
6262 gordon secrets list myapp.local
@@ -55,8 +55,8 @@ gordon routes deploy myapp.example.com
55 55
56 # Attachments56 # Attachments
57 gordon attachments list57 gordon attachments list
58-gordon attachments add app.example.com postgres:1558+gordon attachments add app.example.com postgres:18
59-gordon attachments remove app.example.com postgres:1559+gordon attachments remove app.example.com postgres:18
60 60
61 # Secrets61 # Secrets
62 gordon secrets list myapp.local62 gordon secrets list myapp.local
M docs/concepts.md +1 -1
@@ -142,7 +142,7 @@ Both `app.mydomain.com` and `api.mydomain.com` can access the shared services.
142142 Gordon automatically creates persistent storage from Dockerfile `VOLUME` directives:
143143
144144 ```dockerfile
145-FROM postgres:15
145+FROM postgres:18
146146 VOLUME ["/var/lib/postgresql/data"]
147147 ```
148148
@@ -142,7 +142,7 @@ Both `app.mydomain.com` and `api.mydomain.com` can access the shared services.
142 Gordon automatically creates persistent storage from Dockerfile `VOLUME` directives:142 Gordon automatically creates persistent storage from Dockerfile `VOLUME` directives:
143 143
144 ```dockerfile144 ```dockerfile
145-FROM postgres:15145+FROM postgres:18
146 VOLUME ["/var/lib/postgresql/data"]146 VOLUME ["/var/lib/postgresql/data"]
147 ```147 ```
148 148
M docs/config/attachments.md +9 -9
@@ -65,7 +65,7 @@ Use Dockerfile VOLUME directives for persistent data:
6565
6666 ```dockerfile
6767 # postgres.Dockerfile
68-FROM postgres:15
68+FROM postgres:18
6969 VOLUME ["/var/lib/postgresql/data"]
7070 ENV POSTGRES_DB=myapp
7171 ENV POSTGRES_USER=app
@@ -143,7 +143,7 @@ Multiple apps share the same service instances:
143143 "app.mydomain.com" = "myapp:latest"
144144
145145 [attachments]
146-"app.mydomain.com" = ["postgres:15", "redis:7-alpine"]
146+"app.mydomain.com" = ["postgres:18", "redis:7-alpine"]
147147 ```
148148
149149 ### Microservices with Shared Queue
@@ -169,7 +169,7 @@ Build custom service images with your configuration:
169169
170170 ```dockerfile
171171 # my-postgres.Dockerfile
172-FROM postgres:15
172+FROM postgres:18
173173 VOLUME ["/var/lib/postgresql/data"]
174174 ENV POSTGRES_DB=production
175175 ENV POSTGRES_USER=appuser
@@ -226,26 +226,26 @@ gordon attachments list --remote https://gordon.mydomain.com --token $TOKEN
226226
227227 ```bash
228228 # Add attachment to a domain
229-gordon attachments add app.mydomain.com postgres:15
229+gordon attachments add app.mydomain.com postgres:18
230230
231231 # Add attachment to a network group
232232 gordon attachments add backend redis:7-alpine
233233
234234 # Remote mode
235-gordon attachments add app.mydomain.com postgres:15 --remote https://gordon.mydomain.com --token $TOKEN
235+gordon attachments add app.mydomain.com postgres:18 --remote https://gordon.mydomain.com --token $TOKEN
236236 ```
237237
238238 ### Remove Attachments
239239
240240 ```bash
241241 # Remove attachment from a domain
242-gordon attachments remove app.mydomain.com postgres:15
242+gordon attachments remove app.mydomain.com postgres:18
243243
244244 # Remove from network group
245245 gordon attachments remove backend redis:7-alpine
246246
247247 # Remote mode
248-gordon attachments remove app.mydomain.com postgres:15 --remote https://gordon.mydomain.com --token $TOKEN
248+gordon attachments remove app.mydomain.com postgres:18 --remote https://gordon.mydomain.com --token $TOKEN
249249 ```
250250
251251 ### Alias
@@ -254,8 +254,8 @@ The `gordon attach` command is an alias for `gordon attachments`:
254254
255255 ```bash
256256 gordon attach list
257-gordon attach add app.mydomain.com postgres:15
258-gordon attach remove app.mydomain.com postgres:15
257+gordon attach add app.mydomain.com postgres:18
258+gordon attach remove app.mydomain.com postgres:18
259259 ```
260260
261261 ## Related
@@ -65,7 +65,7 @@ Use Dockerfile VOLUME directives for persistent data:
65 65
66 ```dockerfile66 ```dockerfile
67 # postgres.Dockerfile67 # postgres.Dockerfile
68-FROM postgres:1568+FROM postgres:18
69 VOLUME ["/var/lib/postgresql/data"]69 VOLUME ["/var/lib/postgresql/data"]
70 ENV POSTGRES_DB=myapp70 ENV POSTGRES_DB=myapp
71 ENV POSTGRES_USER=app71 ENV POSTGRES_USER=app
@@ -143,7 +143,7 @@ Multiple apps share the same service instances:
143 "app.mydomain.com" = "myapp:latest"143 "app.mydomain.com" = "myapp:latest"
144 144
145 [attachments]145 [attachments]
146-"app.mydomain.com" = ["postgres:15", "redis:7-alpine"]146+"app.mydomain.com" = ["postgres:18", "redis:7-alpine"]
147 ```147 ```
148 148
149 ### Microservices with Shared Queue149 ### Microservices with Shared Queue
@@ -169,7 +169,7 @@ Build custom service images with your configuration:
169 169
170 ```dockerfile170 ```dockerfile
171 # my-postgres.Dockerfile171 # my-postgres.Dockerfile
172-FROM postgres:15172+FROM postgres:18
173 VOLUME ["/var/lib/postgresql/data"]173 VOLUME ["/var/lib/postgresql/data"]
174 ENV POSTGRES_DB=production174 ENV POSTGRES_DB=production
175 ENV POSTGRES_USER=appuser175 ENV POSTGRES_USER=appuser
@@ -226,26 +226,26 @@ gordon attachments list --remote https://gordon.mydomain.com --token $TOKEN
226 226
227 ```bash227 ```bash
228 # Add attachment to a domain228 # Add attachment to a domain
229-gordon attachments add app.mydomain.com postgres:15229+gordon attachments add app.mydomain.com postgres:18
230 230
231 # Add attachment to a network group231 # Add attachment to a network group
232 gordon attachments add backend redis:7-alpine232 gordon attachments add backend redis:7-alpine
233 233
234 # Remote mode234 # Remote mode
235-gordon attachments add app.mydomain.com postgres:15 --remote https://gordon.mydomain.com --token $TOKEN235+gordon attachments add app.mydomain.com postgres:18 --remote https://gordon.mydomain.com --token $TOKEN
236 ```236 ```
237 237
238 ### Remove Attachments238 ### Remove Attachments
239 239
240 ```bash240 ```bash
241 # Remove attachment from a domain241 # Remove attachment from a domain
242-gordon attachments remove app.mydomain.com postgres:15242+gordon attachments remove app.mydomain.com postgres:18
243 243
244 # Remove from network group244 # Remove from network group
245 gordon attachments remove backend redis:7-alpine245 gordon attachments remove backend redis:7-alpine
246 246
247 # Remote mode247 # Remote mode
248-gordon attachments remove app.mydomain.com postgres:15 --remote https://gordon.mydomain.com --token $TOKEN248+gordon attachments remove app.mydomain.com postgres:18 --remote https://gordon.mydomain.com --token $TOKEN
249 ```249 ```
250 250
251 ### Alias251 ### Alias
@@ -254,8 +254,8 @@ The `gordon attach` command is an alias for `gordon attachments`:
254 254
255 ```bash255 ```bash
256 gordon attach list256 gordon attach list
257-gordon attach add app.mydomain.com postgres:15257+gordon attach add app.mydomain.com postgres:18
258-gordon attach remove app.mydomain.com postgres:15258+gordon attach remove app.mydomain.com postgres:18
259 ```259 ```
260 260
261 ## Related261 ## Related
M docs/config/volumes.md +2 -2
@@ -24,7 +24,7 @@ preserve = true
2424 Gordon automatically creates Docker volumes from Dockerfile `VOLUME` directives:
2525
2626 ```dockerfile
27-FROM postgres:15
27+FROM postgres:18
2828 VOLUME ["/var/lib/postgresql/data"]
2929 ```
3030
@@ -76,7 +76,7 @@ With `preserve = false`:
7676
7777 ```dockerfile
7878 # my-postgres.Dockerfile
79-FROM postgres:15
79+FROM postgres:18
8080 VOLUME ["/var/lib/postgresql/data"]
8181 ENV POSTGRES_DB=myapp
8282 ENV POSTGRES_USER=app
@@ -24,7 +24,7 @@ preserve = true
24 Gordon automatically creates Docker volumes from Dockerfile `VOLUME` directives:24 Gordon automatically creates Docker volumes from Dockerfile `VOLUME` directives:
25 25
26 ```dockerfile26 ```dockerfile
27-FROM postgres:1527+FROM postgres:18
28 VOLUME ["/var/lib/postgresql/data"]28 VOLUME ["/var/lib/postgresql/data"]
29 ```29 ```
30 30
@@ -76,7 +76,7 @@ With `preserve = false`:
76 76
77 ```dockerfile77 ```dockerfile
78 # my-postgres.Dockerfile78 # my-postgres.Dockerfile
79-FROM postgres:1579+FROM postgres:18
80 VOLUME ["/var/lib/postgresql/data"]80 VOLUME ["/var/lib/postgresql/data"]
81 ENV POSTGRES_DB=myapp81 ENV POSTGRES_DB=myapp
82 ENV POSTGRES_USER=app82 ENV POSTGRES_USER=app
M wiki/tutorials/postgres-service.md +1 -1
@@ -20,7 +20,7 @@ Add a PostgreSQL database as an attachment to your application.
2020 Create `postgres.Dockerfile`:
2121
2222 ```dockerfile
23-FROM postgres:15-alpine
23+FROM postgres:18-alpine
2424
2525 # Persistent data directory
2626 VOLUME ["/var/lib/postgresql/data"]
@@ -20,7 +20,7 @@ Add a PostgreSQL database as an attachment to your application.
20 Create `postgres.Dockerfile`:20 Create `postgres.Dockerfile`:
21 21
22 ```dockerfile22 ```dockerfile
23-FROM postgres:15-alpine23+FROM postgres:18-alpine
24 24
25 # Persistent data directory25 # Persistent data directory
26 VOLUME ["/var/lib/postgresql/data"]26 VOLUME ["/var/lib/postgresql/data"]

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close