@@ -12,9 +12,15 @@ content: |
12
12
- ``CHARTS_HTTPS_CERTIFICATE_FILE``
13
13
- ``CHARTS_HTTPS_CERTIFICATE_KEY_FILE``
14
14
15
- Replace the values of these variables with the names of your
15
+ Replace the values of these variables with the * names* of your
16
16
certificate file and key file respectively. The certificate must
17
17
be in the ``.pem`` format and the key file must be a ``.key`` file.
18
+
19
+ .. important::
20
+
21
+ The values of these variables must be filenames, not complete
22
+ file paths. These files are always loaded from the
23
+ ``web-certs`` volume.
18
24
---
19
25
title : Copy the certificate and key file to the |charts-short| Docker volume.
20
26
ref : stop-charts-ssl
@@ -36,7 +42,7 @@ content: |
36
42
37
43
.. code-block:: ps1
38
44
39
- docker run -it -v mongodb-charts_db -certs:/volume -v /c/path/to/certs:/localcerts alpine sh -c 'cp /localcerts/mycert.* /volume'
45
+ docker run -it -v mongodb-charts_web -certs:/volume -v /c/path/to/certs:/localcerts alpine sh -c 'cp /localcerts/mycert.* /volume'
40
46
41
47
.. include:: /includes/fact-docker-unix-paths-windows.rst
42
48
@@ -51,7 +57,7 @@ content: |
51
57
52
58
.. code-block:: sh
53
59
54
- docker run -it -v mongodb-charts_db -certs:/volume -v /path/to/certs:/localcerts alpine sh -c 'cp /localcerts/mycert.* /volume'
60
+ docker run -it -v mongodb-charts_web -certs:/volume -v /path/to/certs:/localcerts alpine sh -c 'cp /localcerts/mycert.* /volume'
55
61
56
62
- id: linux
57
63
content: |
@@ -64,7 +70,7 @@ content: |
64
70
65
71
.. code-block:: sh
66
72
67
- docker run -it -v mongodb-charts_db -certs:/volume -v /path/to/certs:/localcerts alpine sh -c 'cp /localcerts/mycert.* /volume'
73
+ docker run -it -v mongodb-charts_web -certs:/volume -v /path/to/certs:/localcerts alpine sh -c 'cp /localcerts/mycert.* /volume'
68
74
---
69
75
title : Redeploy the |charts-short| Docker stack.
70
76
ref : stop-charts-ssl-http
0 commit comments