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
SECRET_TEST_PASSWORD_VERSION=v1
SECRET_TP_VERSION=v1 # length=10
#SECRET_EXTRA_VERSION=v1
SECRET_TEST_PASS_ONE_VERSION=v1
SECRET_TEST_PASS_TWO_VERSION=v1 # length=10
#SECRET_EXTRA_PASS_VERSION=v1

View File

@ -4,9 +4,9 @@ version: "3.8"
services:
app:
secrets:
- extra
- extra_pass
secrets:
extra:
extra_pass:
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:
- test-volume:/var/www
secrets:
- test_password
- tp
- test_pass_one
- test_pass_two
deploy:
restart_policy:
condition: on-failure
@ -40,12 +40,12 @@ services:
start_period: 1m
secrets:
test_password:
test_pass_one:
external: true
name: ${STACK_NAME}_test_password_${SECRET_TEST_PASSWORD_VERSION}
tp:
name: ${STACK_NAME}_test_pass_one_${SECRET_TEST_PASS_ONE_VERSION}
test_pass_two:
external: true
name: ${STACK_NAME}_tp_${SECRET_TP_VERSION}
name: ${STACK_NAME}_test_pass_two_${SECRET_TEST_PASS_TWO_VERSION}
volumes:
test-volume: