# docker compose up -d
WARN[0000] The "POSTGRES_USER" variable is not set. Defaulting to a blank string.
WARN[0000] The "POSTGRES_PASSWORD" variable is not set. Defaulting to a blank string.
Environment variables to be used within compose are read from the shell's environment or .env file in the same directory. env_file differs, it sets ENV from file, and cannot be referenced.
This issue has been annoying in other projects for me. One possible solution would be to move the constructor to .env.xyz file:
Compose file defines:
SVIX_DB_DSN: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db
Environment variables to be used within compose are read from the shell's environment or
.env
file in the same directory.env_file
differs, it sets ENV from file, and cannot be referenced.This issue has been annoying in other projects for me. One possible solution would be to move the constructor to .env.xyz file: