---
title: "Discussion on \"Docker Compose PostgreSQL environment variables, explained\" | Hashnode"
description: "Discussion on \"Docker Compose PostgreSQL environment variables, explained\". Set POSTGRES_PASSWORD, USER and DB in Docker Compose the right way: a working .env file, why a new password gets ignored, and how to fix each error."
url: "https://hashnode.com/posts/docker-compose-postgresql-environment-variables-explained/6af32a467134c7852feb91fa"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Docker Compose PostgreSQL environment variables, explained](https://octave.hashnode.dev/docker-compose-postgresql-environment-variables-explained?utm_source=hashnode&utm_medium=feed)

Set POSTGRES\_PASSWORD, USER and DB in Docker Compose the right way: a working .env file, why a new password gets ignored, and how to fix each error.

1d ago · 14 min read · octave.hashnode.dev  
Read the article

-   [#docker](https://hashnode.com/tag/docker)
-   [#docker-compose](https://hashnode.com/tag/docker-compose)
-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#devops](https://hashnode.com/tag/devops)

## Written by

[octave Nkurunziza](https://hashnode.com/@octave)

@octave

  
[View profile](https://hashnode.com/@octave)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
