-
Notifications
You must be signed in to change notification settings - Fork 683
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
61873a1
commit b6465a9
Showing
6 changed files
with
38 additions
and
3,266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
packages/**/node_modules | ||
packages/**/dist | ||
packages/**/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
# Docker Directory | ||
|
||
This directory stores certificates for local SSL/TLS, created by running `run-docker` script, as well as configuration for docker environment setup. | ||
This directory stores certificates for local SSL/TLS, created by running `run-docker` script, as well as configuration for docker environment setup. | ||
|
||
Run the `docker/run-docker` script from the root of the repository to create a container running PWA with a secure https protocol. | ||
|
||
This script will: | ||
|
||
* copy the `.env.docker` environment variables to `.env` to be easily consumable by `docker-compose` | ||
* add a custom domain, configured in `.env.docker`, to the host system's `/etc/hosts` file | ||
* generate a self-signed ssl/tls certificate and trust the certificate in the system keychain | ||
* run `docker-compose build` to build the container network | ||
* run `docker-compose up` to start the container running PWA at the customer domain with https | ||
|
||
After `docker/run-docker` is executed from the root of the repository, the default confgiuration will have the PWA application running at `https://pwa-docker.local`. | ||
|
||
### Configure a new custom domain | ||
|
||
The domain is configurable. Two changes are needed to configure a new domain name. | ||
|
||
1. Change `PWA_STUDIO_PUBLIC_PATH` key to the new domain in `docker/.env.docker`. | ||
2. Change the `--host` value in the `watch:docker` script in `packages/venia-concept/package.json` to the new domain. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.