aboutsummaryrefslogtreecommitdiff
path: root/Docker/docker-compose.yml
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/docker-compose.yml
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/docker-compose.yml')
-rw-r--r--Docker/docker-compose.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/Docker/docker-compose.yml b/Docker/docker-compose.yml
index 8fcc6f6d6..1f93a80cf 100644
--- a/Docker/docker-compose.yml
+++ b/Docker/docker-compose.yml
@@ -9,9 +9,9 @@ services:
volumes:
- db:/var/lib/postgresql/data
environment:
- POSTGRES_USER: freshrss
- POSTGRES_PASSWORD: freshrss
- POSTGRES_DB: freshrss
+ POSTGRES_USER: ${POSTGRES_USER:-freshrss}
+ POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-freshrss}
+ POSTGRES_DB: ${POSTGRES_DB:-freshrss}
freshrss-app:
image: freshrss/freshrss:latest
@@ -19,7 +19,7 @@ services:
hostname: freshrss-app
restart: unless-stopped
ports:
- - "8080:80"
+ - "${EXPOSED_PORT:-8080}:80"
depends_on:
- freshrss-db
volumes: