From 547e27c7a15978888cea0d6b1b7db2f33c72f631 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Thu, 15 Sep 2022 17:20:03 +0200 Subject: [PATCH] Feature/set node env in docker compose files (#1261) * Set NODE_ENV to production * Update changelog --- CHANGELOG.md | 4 ++++ docker/docker-compose.build.yml | 1 + docker/docker-compose.yml | 1 + 3 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 911f86b49..28612b1c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Added + +- Added `NODE_ENV: production` to the `docker-compose` files (`docker-compose.yml` and `docker-compose.build.yml`) + ### Changed - Improved the language localization for German (`de`) diff --git a/docker/docker-compose.build.yml b/docker/docker-compose.build.yml index 82fccad8b..1b552b9a3 100644 --- a/docker/docker-compose.build.yml +++ b/docker/docker-compose.build.yml @@ -6,6 +6,7 @@ services: - ../.env environment: DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?sslmode=prefer + NODE_ENV: production REDIS_HOST: 'redis' REDIS_PASSWORD: ${REDIS_PASSWORD} ports: diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index c94954b3e..66b08748e 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -6,6 +6,7 @@ services: - ../.env environment: DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?sslmode=prefer + NODE_ENV: production REDIS_HOST: 'redis' REDIS_PASSWORD: ${REDIS_PASSWORD} ports: