chore: Externalize sensitive credentials in docker-compose.yml to environment variables and add .env to .gitignore.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
client/config.json
|
client/config.json
|
||||||
|
.env
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ services:
|
|||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- BROADCASTER_PASSWORD=MySuperSecurePassword123
|
- BROADCASTER_PASSWORD=${BROADCASTER_PASSWORD}
|
||||||
- TURN_USER=myuser
|
- TURN_USER=${TURN_USER}
|
||||||
- TURN_PASSWORD=mypassword
|
- TURN_PASSWORD=${TURN_PASSWORD}
|
||||||
|
|
||||||
coturn:
|
coturn:
|
||||||
image: coturn/coturn:latest
|
image: coturn/coturn:latest
|
||||||
@@ -21,5 +21,5 @@ services:
|
|||||||
--min-port=49152
|
--min-port=49152
|
||||||
--max-port=49252
|
--max-port=49252
|
||||||
--realm=yourdomain.com
|
--realm=yourdomain.com
|
||||||
--user=myuser:mypassword
|
--user=${TURN_USER}:${TURN_PASSWORD}
|
||||||
--stale-nonce
|
--stale-nonce
|
||||||
|
|||||||
Reference in New Issue
Block a user