ratemyclient/.env.example
Kevin Sivic 3d2e06e662
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 0s
Configure docker-compose to use .env file
- Remove hardcoded values from docker-compose.yml
- Use environment variables from .env file instead
- Update .env.example with placeholder values and instructions
- Update DOCKER_README.md with .env file setup instructions
- Fixes WebSocket origin check by allowing PHX_HOST to be configured per environment

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 00:21:51 -05:00

17 lines
671 B
Text

# Database Configuration
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=my_first_elixir_vibe_code_dev
# Phoenix Configuration
DATABASE_URL=ecto://postgres:postgres@db/my_first_elixir_vibe_code_dev
SECRET_KEY_BASE=CHANGE_ME_IN_PRODUCTION
PHX_HOST=localhost
PORT=4000
# Important:
# 1. Copy this file to .env and update the values for your environment
# 2. For production, generate a new SECRET_KEY_BASE with:
# docker-compose run --rm web bin/my_first_elixir_vibe_code eval "IO.puts(:crypto.strong_rand_bytes(64) |> Base.encode64())"
# or locally with: mix phx.gen.secret
# 3. Update PHX_HOST to your production domain (e.g., ratemyclient.sivic.me)