aboutsummaryrefslogtreecommitdiff
path: root/Docker/README.md
diff options
context:
space:
mode:
authorGravatar caminsha <31421093+caminsha@users.noreply.github.com> 2021-08-14 12:24:38 +0200
committerGravatar GitHub <noreply@github.com> 2021-08-14 12:24:38 +0200
commit1f7bd93c5f4b939938c276bb59d41225539e2343 (patch)
tree8639629a773b38e7fcd67fee5aa9b52d9b4a79f9 /Docker/README.md
parent9234a8a39af75e465a5282ba721a53c2e9334720 (diff)
Use environment variables (#3756)
* Add .env file for docker-compose (fix #3755) Adding a .env has the advantage that the configuration can be stored in a separate file and it'll be possible to just get the newest docker-compose.yml file. * Update documentation for the .env file * Update Docker/README.md Co-authored-by: Frans de Jonge <fransdejonge@gmail.com> Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
Diffstat (limited to 'Docker/README.md')
-rw-r--r--Docker/README.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/Docker/README.md b/Docker/README.md
index d63299de9..3353768ae 100644
--- a/Docker/README.md
+++ b/Docker/README.md
@@ -308,11 +308,16 @@ A [docker-compose.yml](docker-compose.yml) file is given as an example, using Po
- In the `postgresql` service:
* `container_name` directive. Whatever you set this to will be the value you put in the "Host" field during the "Database Configuration" step of installation;
* the `volumes` section. Be careful to keep the path `/var/lib/postgresql/data` for the container. If the path is wrong, you will not get any error but your db will be gone at the next run;
- * the `POSTGRES_PASSWORD` in the `environment` section;
+ * the `POSTGRES_PASSWORD` in the `.env` file;
+ * the `POSTGRES_DB ` in the `.env` file;
+ * the `POSTGRES_USER` in the `.env` file;
- In the `freshrss` service:
* the `volumes` section;
* options under the `labels` section are specific to [Træfik](https://traefik.io/), a reverse proxy. If you are not using it, feel free to delete this section. If you are using it, adapt accordingly to your config, especially the `traefik.frontend.rule` option.
* the `environment` section to adapt the strategy to update feeds.
+ * the `EXPOSED_PORT` variable in the `.env` file;
+
+If you don't want to use the `.env` file you can also directly edit the `docker-compose.yml` file. It's highly recommended to change the password. If you don't change it, it will use the default option.
You can then launch the stack (FreshRSS + PostgreSQL) with: