File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,20 +12,17 @@ RUN make
1212
1313FROM chainguard/wolfi-base:latest
1414
15- WORKDIR /acme-proxy
16- RUN chown -R nonroot:nonroot /acme-proxy/
15+ WORKDIR /opt/ acme-proxy
16+ RUN chown -R nonroot:nonroot /opt/ acme-proxy/
1717
1818COPY --from=build --chown=nonroot:nonroot /build/step-ca .
1919RUN apk add --no-cache pcsc-lite
2020
2121# KV store mount point
22- RUN mkdir /acme-proxy/db && chown nonroot:nonroot /acme-proxy/db
23-
24- # ca.json mount point
25- RUN mkdir /acme-proxy/config && chown nonroot:nonroot /acme-proxy/config
22+ RUN mkdir /opt/acme-proxy/db && chown nonroot:nonroot /opt/acme-proxy/db
2623
2724USER nonroot
2825EXPOSE 443
2926
30- ENTRYPOINT [ "/acme-proxy/step-ca" ]
31- CMD [ "/acme-proxy/config /ca.json" ]
27+ ENTRYPOINT [ "/opt/ acme-proxy/step-ca" ]
28+ CMD [ "/opt/ acme-proxy/ca.json" ]
Original file line number Diff line number Diff line change @@ -149,21 +149,19 @@ Then follow the [pre-built binary](#pre-built-binary) instructions to create the
149149
150150## Docker
151151
152- ### Pre-built image
152+ Make sure to
153153
154- ``` sh
155- docker pull ghcr.io/esnet/acme-proxy:latest
156- ```
157-
158- Run with a bind-mounted config file:
154+ - Configure the ` ca.json ` file
155+ - Create a directory for ` db `
159156
160157``` sh
161158docker run -d \
162159 --name acme-proxy \
163160 -p 443:443 \
164- -v ./ca.json:/opt/acme-proxy/ca.json:ro \
165- -v acme-proxy-db:/opt/acme-proxy/db \
166- ghcr.io/esnet/acme-proxy:latest
161+ -v " $( pwd) " /ca.json:/opt/acme-proxy/ca.json:ro \
162+ -v " $( pwd) " /db:/opt/acme-proxy/db \
163+ --restart unless-stopped \
164+ ghcr.io/esnet/acme-proxy:latest
167165```
168166
169167View logs:
@@ -172,25 +170,6 @@ View logs:
172170docker logs -f acme-proxy
173171```
174172
175- ### Build your own image
176-
177- ``` sh
178- git clone https://github.com/esnet/acme-proxy.git
179- cd acme-proxy
180- docker build -t acme-proxy:latest .
181- ```
182-
183- Run:
184-
185- ``` sh
186- docker run -d \
187- --name acme-proxy \
188- -p 443:443 \
189- -v ./ca.json:/opt/acme-proxy/ca.json:ro \
190- -v acme-proxy-db:/opt/acme-proxy/db \
191- acme-proxy:latest
192- ```
193-
194173### Docker Compose
195174
196175``` yaml
@@ -201,11 +180,8 @@ services:
201180 - " 443:443"
202181 volumes :
203182 - ./ca.json:/opt/acme-proxy/ca.json:ro
204- - acme-proxy- db:/opt/acme-proxy/db
183+ - ./ db:/opt/acme-proxy/db
205184 restart : unless-stopped
206-
207- volumes :
208- acme-proxy-db :
209185` ` `
210186
211187---
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ Set these five fields — everything else can stay at its default:
6868``` json
6969{
7070 "address" : " :443" ,
71- "dnsNames" : [" acmeproxy .example.com" ],
71+ "dnsNames" : [" acme-proxy .example.com" ],
7272 "authority" : {
7373 "type" : " externalcas" ,
7474 "config" : {
@@ -78,7 +78,7 @@ Set these five fields — everything else can stay at its default:
7878 "eab_hmac_key" : " your-hmac-key-here"
7979 }
8080 },
81- "commonName" : " acmeproxy .example.com"
81+ "commonName" : " acme-proxy .example.com"
8282}
8383```
8484
You can’t perform that action at this time.
0 commit comments