secret doesn't work yet
This commit is contained in:
@@ -8,20 +8,16 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
|
||||
# ---------------------------------
|
||||
test:
|
||||
|
||||
build:
|
||||
context: ./requirements/test
|
||||
dockerfile: Dockerfile
|
||||
image: test
|
||||
container_name: mytest
|
||||
|
||||
# ---------------------------------
|
||||
nginx:
|
||||
|
||||
# restart: on-failure
|
||||
#restart: on-failure
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
@@ -29,18 +25,20 @@ services:
|
||||
context: ./requirements/nginx
|
||||
dockerfile: Dockerfile
|
||||
image: nginx
|
||||
# image: nginx_debian
|
||||
container_name: mynginx
|
||||
# container_name: mynginx_debian
|
||||
|
||||
# ---------------------------------
|
||||
mariadb:
|
||||
# restart: on-failure
|
||||
#restart: on-failure
|
||||
build:
|
||||
context: ./requirements/mariadb
|
||||
dockerfile: Dockerfile
|
||||
image: mariadb
|
||||
container_name: mymariadb
|
||||
#--secret id=mysecret,src=mysecret.txt
|
||||
secrets:
|
||||
- my_secret
|
||||
|
||||
# ---------------------------------
|
||||
secrets:
|
||||
my_secret:
|
||||
file: ./secret.txt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user