Skip to content

Commit

Permalink
Env var cleanup (#152)
Browse files Browse the repository at this point in the history
* Have docker postgres get configuration from secrets file

* Fix secrets file git handling
  • Loading branch information
Laura Demkowicz-Duffy authored Aug 8, 2021
1 parent 06fa0e0 commit 6f09ad3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions .env
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
*.env
**/__pycache__
test-file.py
/src/cogs/TestCog.py
.vscode
.idea
.idea
secrets.env
9 changes: 3 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ version: "3"
services:
db:
environment:
- POSTGRES_PASSWORD=Pass2020!
- POSTGRES_USER=${PG_USER}
- POSTGRES_PASSWORD=${PG_PWD}
- POSTGRES_DB=${PG_DATABASE}
image: "postgres:11"
restart: unless-stopped
volumes:
Expand All @@ -16,11 +18,6 @@ services:
env_file: secrets.env
environment:
- PG_HOST=db
- PG_DATABASE=esportsbot
- PG_USER=postgres
- PG_PWD=Pass2020!
- ENABLE_TWITTER=False
- ENABLE_TWITCH=False
restart: unless-stopped

pg_admin:
Expand Down

0 comments on commit 6f09ad3

Please sign in to comment.