Comment unuse strings with secrets

This commit is contained in:
danilapog 2022-07-29 12:47:31 +03:00
parent 87a1ea2663
commit f361f25024

View file

@ -14,14 +14,15 @@ services:
- DB_NAME=onlyoffice
- DB_USER=onlyoffice
- AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq
# Uncomment strings below to enable the JSON Web Token validation without secrets.
# Uncomment strings below to enable the JSON Web Token validation.
#- JWT_ENABLED=true
#- JWT_IN_BODY=true
#- JWT_SECRET=secret
#- JWT_HEADER=Authorization
# Uncomment two strings below to enable the JSON Web Token validation with secret
# ↑ Uncomment two upper strings to use secret and header without docker secrets.
# ↓ Or uncomment two strings below to use secret and header with docker secrets.
#- JWT_SECTER_FILE=/run/secrets/jwtSecret
#- JWT_HEADER_FILE=/run/secrets/jwtHeader
#- JWT_IN_BODY=true
ports:
- '80:80'
- '443:443'
@ -34,11 +35,11 @@ services:
- /var/lib/onlyoffice/documentserver/App_Data/cache/files
- /var/www/onlyoffice/documentserver-example/public/files
- /usr/share/fonts
secrets:
- dbUser
- dbPass
- jwtSecret
- jwtHeader
#secrets:
# - dbUser
# - dbPass
# - jwtSecret
# - jwtHeader
onlyoffice-rabbitmq:
container_name: onlyoffice-rabbitmq
@ -55,7 +56,7 @@ services:
- POSTGRES_USER=onlyoffice
- POSTGRES_HOST_AUTH_METHOD=trust
# NOTE: Comment lines POSTGRES_HOST_AUTH_METHOD and POSTGRES_USER if you want use access with secrets.
# Uncomment strings below for use database credentials from secrets.
# Uncomment two strings below for use database credentials from secrets.
#- POSTGRES_USER_FILE=/run/secrets/dbUser
#- POSTGRES_PASSWORD_FILE=/run/secrets/dbPass
restart: always
@ -63,19 +64,19 @@ services:
- '5432'
volumes:
- postgresql_data:/var/lib/postgresql
secrets:
- dbUser
- dbPass
#secrets:
# - dbUser
# - dbPass
secrets:
dbUser:
external: true
dbPass:
external: true
jwtSecret:
external: true
jwtHeader:
external: true
#secrets:
# dbUser:
# external: true
# dbPass:
# external: true
# jwtSecret:
# external: true
# jwtHeader:
# external: true
volumes:
postgresql_data: