abandon to use secret, it has too many consequences

+ use classical env technic, but it might not be safe
This commit is contained in:
hugo gogo
2022-09-08 13:05:11 +02:00
parent 035538c95d
commit 3f7a3e2170
5 changed files with 40 additions and 40 deletions

View File

@@ -9,12 +9,12 @@ version: "3.8"
services:
# ---------------------------------
test:
build:
context: ./requirements/test
dockerfile: Dockerfile
image: test
container_name: mytest
# test:
# build:
# context: ./requirements/test
# dockerfile: Dockerfile
# image: test
# container_name: mytest
# ---------------------------------
nginx:
#restart: on-failure
@@ -29,16 +29,13 @@ services:
# ---------------------------------
mariadb:
#restart: on-failure
env_file: .env
build:
context: ./requirements/mariadb
dockerfile: Dockerfile
args:
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PSWD=${DB_PSWD}
image: mariadb
container_name: mymariadb
#--secret id=mysecret,src=mysecret.txt
secrets:
- my_secret
secrets:
my_secret:
file: ./secret.txt