From 430364a43efdef7c8b1c9adf20c5146e6a59a489 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Tue, 19 Sep 2023 11:07:53 +0200 Subject: [PATCH] feat: a secret --- .env.sample | 2 ++ compose.yml | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/.env.sample b/.env.sample index 7e4eb58..df8c4b4 100644 --- a/.env.sample +++ b/.env.sample @@ -6,3 +6,5 @@ DOMAIN=abra-integration-test-recipe.example.com #EXTRA_DOMAINS=', `www.{{ .Name }}.example.com`' LETS_ENCRYPT_ENV=production + +SECRET_TEST_PASSWORD_VERSION=v1 diff --git a/compose.yml b/compose.yml index f51aaf9..f56d052 100644 --- a/compose.yml +++ b/compose.yml @@ -6,6 +6,8 @@ services: image: nginx:1.20.0 networks: - proxy + secrets: + - test_password deploy: restart_policy: condition: on-failure @@ -28,6 +30,11 @@ services: retries: 10 start_period: 1m +secrets: + test_password: + external: true + name: ${STACK_NAME}_test_password_${SECRET_TEST_PASSWORD_VERSION} + networks: proxy: external: true