fix: updated docker instructions to support copy paste

This commit is contained in:
Felipe Schmitt 2025-11-28 10:20:35 -05:00 committed by GitHub
parent 38ec057eef
commit 94e4d00b53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -10,27 +10,27 @@ This file covers how to run VERT under a Docker container.
First, clone the repository: First, clone the repository:
```shell ```shell
$ git clone https://github.com/VERT-sh/VERT git clone https://github.com/VERT-sh/VERT
$ cd VERT/ cd VERT/
``` ```
Then build a Docker image with: Then build a Docker image with:
```shell ```shell
$ docker build -t vert-sh/vert \ docker build -t vert-sh/vert \
--build-arg PUB_ENV=production \ --build-arg PUB_ENV=production \
--build-arg PUB_HOSTNAME=vert.sh \ --build-arg PUB_HOSTNAME=vert.sh \
--build-arg PUB_PLAUSIBLE_URL=https://plausible.example.com \ --build-arg PUB_PLAUSIBLE_URL=https://plausible.example.com \
--build-arg PUB_VERTD_URL=https://vertd.vert.sh \ --build-arg PUB_VERTD_URL=https://vertd.vert.sh \
--build-arg PUB_DONATION_URL=https://donations.vert.sh \ --build-arg PUB_DONATION_URL=https://donations.vert.sh \
--build-arg PUB_DISABLE_ALL_EXTERNAL_REQUESTS=false --build-arg PUB_DISABLE_ALL_EXTERNAL_REQUESTS=false \
--build-arg PUB_STRIPE_KEY="" . --build-arg PUB_STRIPE_KEY="" .
``` ```
You can then run it by using: You can then run it by using:
```shell ```shell
$ docker run -d \ docker run -d \
--restart unless-stopped \ --restart unless-stopped \
-p 3000:80 \ -p 3000:80 \
--name "vert" \ --name "vert" \
@ -50,7 +50,7 @@ We also have a [`docker-compose.yml`](/docker-compose.yml) file available. Use `
While there's an image you can pull instead of cloning the repo and building the image yourself, you will not be able to update any of the environment variables (e.g. `PUB_PLAUSIBLE_URL`) as they're baked directly into the image and not obtained during runtime. If you're okay with this, you can simply run this command instead: While there's an image you can pull instead of cloning the repo and building the image yourself, you will not be able to update any of the environment variables (e.g. `PUB_PLAUSIBLE_URL`) as they're baked directly into the image and not obtained during runtime. If you're okay with this, you can simply run this command instead:
```shell ```shell
$ docker run -d \ docker run -d \
--restart unless-stopped \ --restart unless-stopped \
-p 3000:80 \ -p 3000:80 \
--name "vert" \ --name "vert" \