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. | |||
| 18 | 18 | ||
| 19 | 19 | ```bash | |
| 20 | 20 | 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 | |
| 23 | 23 | ``` | |
| 24 | 24 | ||
| 25 | 25 | --- | |
| @@ -45,8 +45,8 @@ gordon attachments list --remote https://gordon.mydomain.com --token $TOKEN | |||
| 45 | 45 | ``` | |
| 46 | 46 | Target Attachments | |
| 47 | 47 | -------------------------------------------------------------------------------- | |
| 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 | |
| 50 | 50 | 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 | 59 | ```bash | |
| 60 | 60 | 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 | |
| 62 | 62 | 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 | 81 | ```bash | |
| 82 | 82 | # Add database to a domain | |
| 83 | - | gordon attachments add app.example.com postgres:15 | |
| 83 | + | gordon attachments add app.example.com postgres:18 | |
| 84 | 84 | ||
| 85 | 85 | # Add cache to a network group (shared by all domains in the group) | |
| 86 | 86 | gordon attachments add backend redis:7-alpine | |
| 87 | 87 | ||
| 88 | 88 | # 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 | |
| 90 | 90 | ``` | |
| 91 | 91 | ||
| 92 | 92 | --- | |
| @@ -97,7 +97,7 @@ Remove an attachment. | |||
| 97 | 97 | ||
| 98 | 98 | ```bash | |
| 99 | 99 | 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 | |
| 101 | 101 | ``` | |
| 102 | 102 | ||
| 103 | 103 | ### Arguments | |
| @@ -118,13 +118,13 @@ gordon attachments remove app.example.com postgres:15 | |||
| 118 | 118 | ||
| 119 | 119 | ```bash | |
| 120 | 120 | # Remove database from a domain | |
| 121 | - | gordon attachments remove app.example.com postgres:15 | |
| 121 | + | gordon attachments remove app.example.com postgres:18 | |
| 122 | 122 | ||
| 123 | 123 | # Remove from network group | |
| 124 | 124 | gordon attachments remove backend redis:7-alpine | |
| 125 | 125 | ||
| 126 | 126 | # 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 | |
| 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 | 136 | ```bash | |
| 137 | 137 | # Add PostgreSQL database | |
| 138 | - | gordon attachments add app.example.com postgres:15 | |
| 138 | + | gordon attachments add app.example.com postgres:18 | |
| 139 | 139 | ||
| 140 | 140 | # Add Redis cache | |
| 141 | 141 | gordon attachments add app.example.com redis:7-alpine | |
| @@ -18,8 +18,8 @@ Manage attachments on local or remote Gordon instances. | |||||
| 18 | 18 | ||||
| 19 | ```bash | 19 | ```bash | ||
| 20 | gordon attach list | 20 | gordon attach list | ||
| 21 | - | gordon attach add app.example.com postgres:15 | 21 | + | gordon attach add app.example.com postgres:18 |
| 22 | - | gordon attach remove app.example.com postgres:15 | 22 | + | 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 Attachments | 46 | Target Attachments | ||
| 47 | -------------------------------------------------------------------------------- | 47 | -------------------------------------------------------------------------------- | ||
| 48 | - | app.example.com postgres:15, redis:7-alpine | 48 | + | app.example.com postgres:18, redis:7-alpine |
| 49 | - | api.example.com postgres:15 | 49 | + | api.example.com postgres:18 |
| 50 | backend (group) rabbitmq:3-management | 50 | 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 | ```bash | 59 | ```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:15 | 61 | + | gordon attachments add app.example.com postgres:18 |
| 62 | gordon attachments add backend redis:7-alpine | 62 | 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 | ```bash | 81 | ```bash | ||
| 82 | # Add database to a domain | 82 | # Add database to a domain | ||
| 83 | - | gordon attachments add app.example.com postgres:15 | 83 | + | 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-alpine | 86 | gordon attachments add backend redis:7-alpine | ||
| 87 | 87 | ||||
| 88 | # Remote | 88 | # 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 |
| 90 | ``` | 90 | ``` | ||
| 91 | 91 | ||||
| 92 | --- | 92 | --- | ||
| @@ -97,7 +97,7 @@ Remove an attachment. | |||||
| 97 | 97 | ||||
| 98 | ```bash | 98 | ```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:15 | 100 | + | gordon attachments remove app.example.com postgres:18 |
| 101 | ``` | 101 | ``` | ||
| 102 | 102 | ||||
| 103 | ### Arguments | 103 | ### Arguments | ||
| @@ -118,13 +118,13 @@ gordon attachments remove app.example.com postgres:15 | |||||
| 118 | 118 | ||||
| 119 | ```bash | 119 | ```bash | ||
| 120 | # Remove database from a domain | 120 | # Remove database from a domain | ||
| 121 | - | gordon attachments remove app.example.com postgres:15 | 121 | + | gordon attachments remove app.example.com postgres:18 |
| 122 | 122 | ||||
| 123 | # Remove from network group | 123 | # Remove from network group | ||
| 124 | gordon attachments remove backend redis:7-alpine | 124 | gordon attachments remove backend redis:7-alpine | ||
| 125 | 125 | ||||
| 126 | # Remote | 126 | # 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 |
| 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 | ```bash | 136 | ```bash | ||
| 137 | # Add PostgreSQL database | 137 | # Add PostgreSQL database | ||
| 138 | - | gordon attachments add app.example.com postgres:15 | 138 | + | gordon attachments add app.example.com postgres:18 |
| 139 | 139 | ||||
| 140 | # Add Redis cache | 140 | # Add Redis cache | ||
| 141 | gordon attachments add app.example.com redis:7-alpine | 141 | 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 | |||
| 55 | 55 | ||
| 56 | 56 | # Attachments | |
| 57 | 57 | 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 | |
| 60 | 60 | ||
| 61 | 61 | # Secrets | |
| 62 | 62 | gordon secrets list myapp.local | |
| @@ -55,8 +55,8 @@ gordon routes deploy myapp.example.com | |||||
| 55 | 55 | ||||
| 56 | # Attachments | 56 | # Attachments | ||
| 57 | gordon attachments list | 57 | gordon attachments list | ||
| 58 | - | gordon attachments add app.example.com postgres:15 | 58 | + | gordon attachments add app.example.com postgres:18 |
| 59 | - | gordon attachments remove app.example.com postgres:15 | 59 | + | gordon attachments remove app.example.com postgres:18 |
| 60 | 60 | ||||
| 61 | # Secrets | 61 | # Secrets | ||
| 62 | gordon secrets list myapp.local | 62 | 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. | |||
| 142 | 142 | Gordon automatically creates persistent storage from Dockerfile `VOLUME` directives: | |
| 143 | 143 | ||
| 144 | 144 | ```dockerfile | |
| 145 | - | FROM postgres:15 | |
| 145 | + | FROM postgres:18 | |
| 146 | 146 | VOLUME ["/var/lib/postgresql/data"] | |
| 147 | 147 | ``` | |
| 148 | 148 | ||
| @@ -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 | ```dockerfile | 144 | ```dockerfile | ||
| 145 | - | FROM postgres:15 | 145 | + | 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: | |||
| 65 | 65 | ||
| 66 | 66 | ```dockerfile | |
| 67 | 67 | # postgres.Dockerfile | |
| 68 | - | FROM postgres:15 | |
| 68 | + | FROM postgres:18 | |
| 69 | 69 | VOLUME ["/var/lib/postgresql/data"] | |
| 70 | 70 | ENV POSTGRES_DB=myapp | |
| 71 | 71 | ENV POSTGRES_USER=app | |
| @@ -143,7 +143,7 @@ Multiple apps share the same service instances: | |||
| 143 | 143 | "app.mydomain.com" = "myapp:latest" | |
| 144 | 144 | ||
| 145 | 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 | 149 | ### Microservices with Shared Queue | |
| @@ -169,7 +169,7 @@ Build custom service images with your configuration: | |||
| 169 | 169 | ||
| 170 | 170 | ```dockerfile | |
| 171 | 171 | # my-postgres.Dockerfile | |
| 172 | - | FROM postgres:15 | |
| 172 | + | FROM postgres:18 | |
| 173 | 173 | VOLUME ["/var/lib/postgresql/data"] | |
| 174 | 174 | ENV POSTGRES_DB=production | |
| 175 | 175 | ENV POSTGRES_USER=appuser | |
| @@ -226,26 +226,26 @@ gordon attachments list --remote https://gordon.mydomain.com --token $TOKEN | |||
| 226 | 226 | ||
| 227 | 227 | ```bash | |
| 228 | 228 | # Add attachment to a domain | |
| 229 | - | gordon attachments add app.mydomain.com postgres:15 | |
| 229 | + | gordon attachments add app.mydomain.com postgres:18 | |
| 230 | 230 | ||
| 231 | 231 | # Add attachment to a network group | |
| 232 | 232 | gordon attachments add backend redis:7-alpine | |
| 233 | 233 | ||
| 234 | 234 | # 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 | |
| 236 | 236 | ``` | |
| 237 | 237 | ||
| 238 | 238 | ### Remove Attachments | |
| 239 | 239 | ||
| 240 | 240 | ```bash | |
| 241 | 241 | # Remove attachment from a domain | |
| 242 | - | gordon attachments remove app.mydomain.com postgres:15 | |
| 242 | + | gordon attachments remove app.mydomain.com postgres:18 | |
| 243 | 243 | ||
| 244 | 244 | # Remove from network group | |
| 245 | 245 | gordon attachments remove backend redis:7-alpine | |
| 246 | 246 | ||
| 247 | 247 | # 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 | |
| 249 | 249 | ``` | |
| 250 | 250 | ||
| 251 | 251 | ### Alias | |
| @@ -254,8 +254,8 @@ The `gordon attach` command is an alias for `gordon attachments`: | |||
| 254 | 254 | ||
| 255 | 255 | ```bash | |
| 256 | 256 | 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 | |
| 259 | 259 | ``` | |
| 260 | 260 | ||
| 261 | 261 | ## Related | |
| @@ -65,7 +65,7 @@ Use Dockerfile VOLUME directives for persistent data: | |||||
| 65 | 65 | ||||
| 66 | ```dockerfile | 66 | ```dockerfile | ||
| 67 | # postgres.Dockerfile | 67 | # postgres.Dockerfile | ||
| 68 | - | FROM postgres:15 | 68 | + | FROM postgres:18 |
| 69 | VOLUME ["/var/lib/postgresql/data"] | 69 | VOLUME ["/var/lib/postgresql/data"] | ||
| 70 | ENV POSTGRES_DB=myapp | 70 | ENV POSTGRES_DB=myapp | ||
| 71 | ENV POSTGRES_USER=app | 71 | 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 Queue | 149 | ### Microservices with Shared Queue | ||
| @@ -169,7 +169,7 @@ Build custom service images with your configuration: | |||||
| 169 | 169 | ||||
| 170 | ```dockerfile | 170 | ```dockerfile | ||
| 171 | # my-postgres.Dockerfile | 171 | # my-postgres.Dockerfile | ||
| 172 | - | FROM postgres:15 | 172 | + | FROM postgres:18 |
| 173 | VOLUME ["/var/lib/postgresql/data"] | 173 | VOLUME ["/var/lib/postgresql/data"] | ||
| 174 | ENV POSTGRES_DB=production | 174 | ENV POSTGRES_DB=production | ||
| 175 | ENV POSTGRES_USER=appuser | 175 | ENV POSTGRES_USER=appuser | ||
| @@ -226,26 +226,26 @@ gordon attachments list --remote https://gordon.mydomain.com --token $TOKEN | |||||
| 226 | 226 | ||||
| 227 | ```bash | 227 | ```bash | ||
| 228 | # Add attachment to a domain | 228 | # Add attachment to a domain | ||
| 229 | - | gordon attachments add app.mydomain.com postgres:15 | 229 | + | gordon attachments add app.mydomain.com postgres:18 |
| 230 | 230 | ||||
| 231 | # Add attachment to a network group | 231 | # Add attachment to a network group | ||
| 232 | gordon attachments add backend redis:7-alpine | 232 | gordon attachments add backend redis:7-alpine | ||
| 233 | 233 | ||||
| 234 | # Remote mode | 234 | # 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 |
| 236 | ``` | 236 | ``` | ||
| 237 | 237 | ||||
| 238 | ### Remove Attachments | 238 | ### Remove Attachments | ||
| 239 | 239 | ||||
| 240 | ```bash | 240 | ```bash | ||
| 241 | # Remove attachment from a domain | 241 | # Remove attachment from a domain | ||
| 242 | - | gordon attachments remove app.mydomain.com postgres:15 | 242 | + | gordon attachments remove app.mydomain.com postgres:18 |
| 243 | 243 | ||||
| 244 | # Remove from network group | 244 | # Remove from network group | ||
| 245 | gordon attachments remove backend redis:7-alpine | 245 | gordon attachments remove backend redis:7-alpine | ||
| 246 | 246 | ||||
| 247 | # Remote mode | 247 | # 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 |
| 249 | ``` | 249 | ``` | ||
| 250 | 250 | ||||
| 251 | ### Alias | 251 | ### Alias | ||
| @@ -254,8 +254,8 @@ The `gordon attach` command is an alias for `gordon attachments`: | |||||
| 254 | 254 | ||||
| 255 | ```bash | 255 | ```bash | ||
| 256 | gordon attach list | 256 | gordon attach list | ||
| 257 | - | gordon attach add app.mydomain.com postgres:15 | 257 | + | gordon attach add app.mydomain.com postgres:18 |
| 258 | - | gordon attach remove app.mydomain.com postgres:15 | 258 | + | gordon attach remove app.mydomain.com postgres:18 |
| 259 | ``` | 259 | ``` | ||
| 260 | 260 | ||||
| 261 | ## Related | 261 | ## Related | ||
M docs/config/volumes.md +2 -2
| @@ -24,7 +24,7 @@ preserve = true | |||
| 24 | 24 | Gordon automatically creates Docker volumes from Dockerfile `VOLUME` directives: | |
| 25 | 25 | ||
| 26 | 26 | ```dockerfile | |
| 27 | - | FROM postgres:15 | |
| 27 | + | FROM postgres:18 | |
| 28 | 28 | VOLUME ["/var/lib/postgresql/data"] | |
| 29 | 29 | ``` | |
| 30 | 30 | ||
| @@ -76,7 +76,7 @@ With `preserve = false`: | |||
| 76 | 76 | ||
| 77 | 77 | ```dockerfile | |
| 78 | 78 | # my-postgres.Dockerfile | |
| 79 | - | FROM postgres:15 | |
| 79 | + | FROM postgres:18 | |
| 80 | 80 | VOLUME ["/var/lib/postgresql/data"] | |
| 81 | 81 | ENV POSTGRES_DB=myapp | |
| 82 | 82 | 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 | ```dockerfile | 26 | ```dockerfile | ||
| 27 | - | FROM postgres:15 | 27 | + | 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 | ```dockerfile | 77 | ```dockerfile | ||
| 78 | # my-postgres.Dockerfile | 78 | # my-postgres.Dockerfile | ||
| 79 | - | FROM postgres:15 | 79 | + | FROM postgres:18 |
| 80 | VOLUME ["/var/lib/postgresql/data"] | 80 | VOLUME ["/var/lib/postgresql/data"] | ||
| 81 | ENV POSTGRES_DB=myapp | 81 | ENV POSTGRES_DB=myapp | ||
| 82 | ENV POSTGRES_USER=app | 82 | 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. | |||
| 20 | 20 | Create `postgres.Dockerfile`: | |
| 21 | 21 | ||
| 22 | 22 | ```dockerfile | |
| 23 | - | FROM postgres:15-alpine | |
| 23 | + | FROM postgres:18-alpine | |
| 24 | 24 | ||
| 25 | 25 | # Persistent data directory | |
| 26 | 26 | 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 | ```dockerfile | 22 | ```dockerfile | ||
| 23 | - | FROM postgres:15-alpine | 23 | + | FROM postgres:18-alpine |
| 24 | 24 | ||||
| 25 | # Persistent data directory | 25 | # Persistent data directory | ||
| 26 | VOLUME ["/var/lib/postgresql/data"] | 26 | VOLUME ["/var/lib/postgresql/data"] | ||