diff options
author | Geri Ochoa <gerino@google.com> | 2022-06-13 14:08:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 14:08:37 +0300 |
commit | 436ae8700eeb7ea63278b9d1a410ea03d32bf156 (patch) | |
tree | d52596a332bba52a07881c7d0e318c21aba08f98 /docker-compose.yaml | |
parent | a0852ca57a8fb61c3e40cd898305179342b8364f (diff) |
Add Docker to run docsy user guide locally (#1016)
Add support to run the docsy website server locally inside a container.
With support for both `docker` and `docker-compose`.
The folder is mounted as a shared volume, allowing changes to be picked up
by the container. The `node_modules` folder is kept in a volume, to
avoid surfacing those files in the host folder.
The documentation explains how to run the container as the host user, so
you don't end up with files like `package.json` and `.hugo-build.lock`
owned by root on the host os.
Co-authored-by: LisaFC <lcarey@google.com>
Diffstat (limited to 'docker-compose.yaml')
-rw-r--r-- | docker-compose.yaml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..5c3a5e3 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,14 @@ +version: "3.3" + +services: + + site: + image: docsy/user-guide + build: + context: . + ports: + - "1313:1313" + user: "${DOCSY_USER}" + volumes: + - /app/docsy/userguide/node_modules + - .:/app/docsy |