fix: docker run uses --env

This commit is contained in:
Brandon
2025-12-23 15:48:04 +13:00
committed by GitHub
parent 378faf8158
commit e861e149c0
+4 -4
View File
@@ -45,7 +45,7 @@ bin/rails secret
Once you have one, set it in the `SECRET_KEY_BASE` environment variable: Once you have one, set it in the `SECRET_KEY_BASE` environment variable:
```sh ```sh
docker run --environment SECRET_KEY_BASE=abcdefabcdef ... docker run --env SECRET_KEY_BASE=abcdefabcdef ...
``` ```
#### SSL #### SSL
@@ -56,7 +56,7 @@ Note that if you're using SSL, you'll want to allow traffic on ports 80 and 443.
So if you were running on `fizzy.example.com` you could enable SSL like this: So if you were running on `fizzy.example.com` you could enable SSL like this:
```sh ```sh
docker run --publish 80:80 --publish 443:443 --environment TLS_DOMAIN=fizzy.example.com ... docker run --publish 80:80 --publish 443:443 --env TLS_DOMAIN=fizzy.example.com ...
``` ```
If you are terminating SSL in some other proxy in front of Fizzy, then you don't need to set `TLS_DOMAIN`, and can just publish port 80: If you are terminating SSL in some other proxy in front of Fizzy, then you don't need to set `TLS_DOMAIN`, and can just publish port 80:
@@ -67,7 +67,7 @@ docker run --publish 80:80 ...
If you aren't using SSL at all (for example, if you want to run it locally on your laptop) then you should specify `DISABLE_SSL=true` instead: If you aren't using SSL at all (for example, if you want to run it locally on your laptop) then you should specify `DISABLE_SSL=true` instead:
```sh ```sh
docker run --publish 80:80 --environment DISABLE_SSL=true ... docker run --publish 80:80 --env DISABLE_SSL=true ...
``` ```
#### SMTP Email #### SMTP Email
@@ -96,7 +96,7 @@ Fizzy needs to know the public URL of your instance so it can generate correct l
Set `BASE_URL` to the full URL where your Fizzy instance is accessible: Set `BASE_URL` to the full URL where your Fizzy instance is accessible:
```sh ```sh
docker run --environment BASE_URL=https://fizzy.example.com ... docker run --env BASE_URL=https://fizzy.example.com ...
``` ```
#### VAPID keys #### VAPID keys