forked from coop-cloud/abra-test-recipe
refactor!: consistent secrets naming
This commit is contained in:
parent
d5351c10d0
commit
c8594e3789
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
12
compose.yml
12
compose.yml
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue