Criando um .env para evitar enviar senhas e dados sensíveis para o Github
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,6 +2,7 @@ __localcode
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
chromedriver
|
chromedriver
|
||||||
mysql_206
|
mysql_206
|
||||||
|
.env
|
||||||
|
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
|||||||
4
aula206/.env-example
Normal file
4
aula206/.env-example
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
MYSQL_ROOT_PASSWORD = 'CHANGE-ME'
|
||||||
|
MYSQL_DATABASE = 'CHANGE-ME'
|
||||||
|
MYSQL_USER = 'CHANGE-ME'
|
||||||
|
MYSQL_PASSWORD = 'CHANGE-ME'
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
version: '3.9'
|
version: '3.9'
|
||||||
services:
|
services:
|
||||||
mysql_206:
|
mysql_206:
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
container_name: mysql_206
|
container_name: mysql_206
|
||||||
hostname: mysql_206
|
hostname: mysql_206
|
||||||
image: mysql:8
|
image: mysql:8
|
||||||
@@ -15,8 +17,4 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 3306:3306
|
- 3306:3306
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: senha
|
|
||||||
MYSQL_DATABASE: base_de_dados
|
|
||||||
MYSQL_USER: usuario
|
|
||||||
MYSQL_PASSWORD: senha
|
|
||||||
TZ: America/Sao_Paulo
|
TZ: America/Sao_Paulo
|
||||||
|
|||||||
Reference in New Issue
Block a user