Skip to content

Commit ff167c8

Browse files
committed
Bind secrets to stack
Secrets for gateway needed to be bound to stack, but were commented-out. Tested on Swarm. Signed-off-by: Alex Ellis (VMware) <[email protected]>
1 parent a27fceb commit ff167c8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docker-compose.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ services:
3232
placement:
3333
constraints:
3434
- 'node.platform.os == linux'
35-
# secrets:
36-
# - basic-auth-user
37-
# - basic-auth-password
35+
secrets:
36+
- basic-auth-user
37+
- basic-auth-password
3838

3939
# Docker Swarm provider
4040
faas-swarm:
@@ -180,8 +180,8 @@ networks:
180180
labels:
181181
- "openfaas=true"
182182

183-
# secrets:
184-
# basic-auth-user:
185-
# external: true
186-
# basic-auth-password:
187-
# external: true
183+
secrets:
184+
basic-auth-user:
185+
external: true
186+
basic-auth-password:
187+
external: true

0 commit comments

Comments
 (0)