-
-
Notifications
You must be signed in to change notification settings - Fork 165
Docker newbie3 instructions
Michael Gage edited this page May 5, 2022
·
16 revisions
-
First you need to purchase a domain name and arrange for nameservers to forward that domain name to the IP address on your computer.
-
edit docker-compose.yml
-
hostname:
should be uncommented and changed fromhostname: localhost
tohostname: MyDomainName.com
- enable the SSL switch SSL: 1 (SSL: 0 or commented line #SSL: 1 disables SSL
- uncomment or redefine
WEBWORK_ROOT_URL
WEBWORK_ROOT_URL: https://MyDomainName.com
- If uncommented, the entry should include
http
orhttps
e.g.http://localhost
orhttps://myDomain.com
- The default is `http://localhost (when the line is commented out)
-
** in the ports:
section
*** comment out # - "${WEBWORK2_HTTP_PORT_ON_HOST}:80"
*** uncomment the port assignments
"80:80"
"443:443"
*** turn off the apache server for the computer or reassign the port it listens on to something other 80 and 443. (Alternatively assign the ports used in the docker to alternate ports -- say 8080 and 8443) otherwise you will be informed of port conflicts.
- edit docker-config/apache/000-default.....
- edit docker-config/ssl/default-ssl.conf
- add certificate and key (or better yet a link to the same) to docker-config/ssl/local