Skip to content

Commit

Permalink
Update env stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanlaj committed Apr 27, 2024
1 parent d961867 commit babb666
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# use this for production / hosting your own app

DB_ROOT_PWD=""
ACCESS_TOKEN_SECRET=""
REFRESH_TOKEN_SECRET=""
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
db:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: ROOT_PWD
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PWD}
MYSQL_DATABASE: capture-the-feather
ports:
- "1459:3306"
Expand All @@ -19,9 +19,9 @@ services:
- server
server:
environment:
CTF_DB_URL: "mysql://root:ROOT_PWD@db:3306/capture-the-feather"
ACCESS_TOKEN_SECRET: "LOLUWISH"
REFRESH_TOKEN_SECRET: "HAHALOLUWISH"
CTF_DB_URL: "mysql://root:${DB_ROOT_PWD}@db:3306/capture-the-feather"
ACCESS_TOKEN_SECRET: ${ACCESS_TOKEN_SECRET}
REFRESH_TOKEN_SECRET: ${REFRESH_TOKEN_SECRET}
build:
context: ./server
ports:
Expand Down
2 changes: 2 additions & 0 deletions server/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Use this for development purposes only

CTF_DB_URL=""
ACCESS_TOKEN_SECRET=""
REFRESH_TOKEN_SECRET=""

0 comments on commit babb666

Please sign in to comment.