Upload files to "Secrets2"
This commit is contained in:
1 parent
d347d5604b
commit
7e98f1ff36
5 files changed
+30
No files matched your search
@@ -0,0 +1,26 @@
|
|||||||
|
services:
|
||||||
|
sgbd:
|
||||||
|
image: mysql:latest
|
||||||
|
container_name: sgbd
|
||||||
|
environment:
|
||||||
|
- MYSQL_DATABASE_FILE=/run/secrets/db_name
|
||||||
|
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db_root_password
|
||||||
|
- MYSQL_USER_FILE=/run/secrets/db_mysql_user
|
||||||
|
- MYSQL_PASSWORD_FILE=/run/secrets/db_mysql_password
|
||||||
|
secrets:
|
||||||
|
- db_name
|
||||||
|
- db_root_password
|
||||||
|
- db_mysql_user
|
||||||
|
- db_mysql_password
|
||||||
|
ports:
|
||||||
|
- 3306:3306
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
db_name:
|
||||||
|
file: ./db_name.txt
|
||||||
|
db_root_password:
|
||||||
|
file: ./db_root_password.txt
|
||||||
|
db_mysql_user:
|
||||||
|
file: ./db_mysql_user.txt
|
||||||
|
db_mysql_password:
|
||||||
|
file: ./db_mysql_password.txt
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
$QLpa$$
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
sqluser
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
mydatabase
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
R00t-P@$$
|
||||||
Reference in new issue
Block a user