Hi everyone! We're hard at work trying to keep our community clean, so if you see any spam, please report it here and we'll review ASAP!  Thanks a million!
7 Users Online
  • 744,523,698 Downloads
  • 1,696,349 Wallpapers
  • 1,565,068 Members
  • 14,834,217 Votes
  • 7,290,616 Favorites

version: "3.9" services: web: build: . env_file: - .secrets # injected into container at runtime ports: - "8000:8000"

my‑project/ │ ├─ src/ ├─ tests/ ├─ .gitignore └─ .. (outside) .secrets Add a rule to your .gitignore (or the ignore file of whatever VCS you use):

# 1️⃣ Ensure the file exists and is chmod 600 touch .secrets && chmod 600 .secrets

# .gitignore .secrets .secrets/ .secrets.* If you’re using a :

# 2️⃣ Add your key/value pairs echo "DB_PASSWORD=SuperSecret123!" >> .secrets

# Secrets .secrets .secrets.* (using an env file)