refactor!: consistent secrets naming

This commit is contained in:
decentral1se 2023-09-25 09:31:33 +02:00
parent d5351c10d0
commit c8594e3789
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
3 changed files with 12 additions and 12 deletions

View File

@ -9,6 +9,6 @@ COMPOSE_FILE="compose.yml"
LETS_ENCRYPT_ENV=production LETS_ENCRYPT_ENV=production
SECRET_TEST_PASSWORD_VERSION=v1 SECRET_TEST_PASS_ONE_VERSION=v1
SECRET_TP_VERSION=v1 # length=10 SECRET_TEST_PASS_TWO_VERSION=v1 # length=10
#SECRET_EXTRA_VERSION=v1 #SECRET_EXTRA_PASS_VERSION=v1

View File

@ -4,9 +4,9 @@ version: "3.8"
services: services:
app: app:
secrets: secrets:
- extra - extra_pass
secrets: secrets:
extra: extra_pass:
external: true external: true
name: ${STACK_NAME}_extra_${SECRET_EXTRA_VERSION} name: ${STACK_NAME}_extra_pass_${SECRET_EXTRA_PASS_VERSION}

View File

@ -9,8 +9,8 @@ services:
volumes: volumes:
- test-volume:/var/www - test-volume:/var/www
secrets: secrets:
- test_password - test_pass_one
- tp - test_pass_two
deploy: deploy:
restart_policy: restart_policy:
condition: on-failure condition: on-failure
@ -40,12 +40,12 @@ services:
start_period: 1m start_period: 1m
secrets: secrets:
test_password: test_pass_one:
external: true external: true
name: ${STACK_NAME}_test_password_${SECRET_TEST_PASSWORD_VERSION} name: ${STACK_NAME}_test_pass_one_${SECRET_TEST_PASS_ONE_VERSION}
tp: test_pass_two:
external: true external: true
name: ${STACK_NAME}_tp_${SECRET_TP_VERSION} name: ${STACK_NAME}_test_pass_two_${SECRET_TEST_PASS_TWO_VERSION}
volumes: volumes:
test-volume: test-volume: