haproxy-letsencrypt-docker.md
... ...
@@ -44,7 +44,7 @@ Create a `letsencrypt` directory to stuff this in, in your current directory.
44 44
The `letsencrypt/Dockerfile` file looks like:
45 45
46 46
```dockerfile
47
-FROM ubuntu:latest
47
+FROM ubuntu:18.04
48 48
49 49
ENV DEBIAN_FRONTEND=noninteractive
50 50
RUN apt-get update && \
... ...
@@ -56,7 +56,7 @@ COPY deploy-hook /deploy-hook
56 56
RUN chmod +x /deploy-hook
57 57
```
58 58
59
-Note we're installing the docker.io package, and copying in a 'deploy-hook' script (see below). We'll need them later on. We could probably use the official certbot image, but chances are you'll already have 'ubuntu:latest' in-cache, so we might as well use it.
59
+Note we're installing the docker.io package, and copying in a 'deploy-hook' script (see below). We'll need them later on. We could probably use the official certbot image, but chances are you'll already have 'ubuntu:18.04' in-cache, so we might as well use it.
60 60
61 61
## docker-compose-stage1.yml
62 62
To run the container, we'll wrap it up in a docker-compose file called `docker-compose-stage1.yml`. Put this in your current directory:
... ...
@@ -205,7 +205,7 @@ version: '3'
205 205
services:
206 206
haproxy:
207 207
container_name: haproxy
208
- image: haproxy:latest
208
+ image: haproxy:2.0
209 209
restart: always
210 210
volumes:
211 211
- ./haproxy/bind:/usr/local/etc/haproxy:ro,Z
... ...
@@ -259,7 +259,7 @@ version: '3'
259 259
services:
260 260
haproxy:
261 261
container_name: haproxy
262
- image: haproxy:latest
262
+ image: haproxy:2.0
263 263
restart: always
264 264
volumes:
265 265
- ./haproxy/bind:/usr/local/etc/haproxy:ro,Z