generated from coop-cloud/example
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
|
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
|
||||||
|
|
|
@ -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}
|
||||||
|
|
12
compose.yml
12
compose.yml
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue