You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ services:
75
75
- ./mysql/data:/var/lib/mysql
76
76
```
77
77
78
-
The default port is 80. If you want to support HTTPS, you can set the environment variable SERVER_NAME, SSL_ENABLED to true, and publish the 443 port.
78
+
The default port is 80. If you want to support HTTPS, you can set the environment variable DOMAIN_NAME, HTTPS_ENABLED to true, and publish the 443 port.
79
79
80
80
Below is the example, to set HTTPS for domain name "example.com", so you can visit https://example.com.
81
81
@@ -88,9 +88,9 @@ services:
88
88
- 80:80
89
89
- 443:443
90
90
environment:
91
-
- SERVER_NAME=example.com
92
-
- SSL_ENABLED=true
93
-
- CERTBOT_ENABLED=true
91
+
- DOMAIN_NAME=example.com
92
+
- HTTPS_ENABLED=true
93
+
- LETSENCRYPT_ENABLED=true
94
94
- WP_DB_HOST=db
95
95
- WP_DB_USER=wordpress
96
96
- WP_DB_PASSWORD=password
@@ -112,9 +112,9 @@ services:
112
112
- ./mysql/data:/var/lib/mysql
113
113
```
114
114
115
-
Note that we use letsencrypt's certbot to generate SSL certificates for you, you need to prove the domain is controlled by you, in most case your domain name should already resolved to the host you run this container, otherwise the certbot will fail, and the container will not be able to serve.
115
+
Note that we use letsencryptto generate SSL certificates for you, you need to prove the domain is controlled by you, in most case your domain name should already resolved to the host you run this container, otherwise the certbot will fail to generate certificate, the website will only serve on 80 port.
116
116
117
-
However, if you want to use your own certificate or if your environment does not support certbot to automatically generate certificate, you can set CERTBOT_ENABLED to false, and mount a volumn to /var/ssl, then put your own fullchain.pem and privkey.pem to this folder.
117
+
However, if you want to use your own certificate or if your environment does not support letsencrypt to automatically generate certificate, you can set LETSENCRYPT_ENABLED to false, and mount a volumn to /var/ssl, then put your own fullchain.pem and privkey.pem to this folder. The website will not serve before the two files are properly placed.
118
118
119
119
## Develop
120
120
Feel free to visit the repository site on Github: [https://github.com/augwit/wordpress/](https://github.com/augwit/wordpress/)
0 commit comments