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_NAME=onlyoffice
- DB_USER=onlyoffice - DB_USER=onlyoffice
- AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq - 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_ENABLED=true
#- JWT_IN_BODY=true
#- JWT_SECRET=secret #- JWT_SECRET=secret
#- JWT_HEADER=Authorization #- 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_SECTER_FILE=/run/secrets/jwtSecret
#- JWT_HEADER_FILE=/run/secrets/jwtHeader #- JWT_HEADER_FILE=/run/secrets/jwtHeader
#- JWT_IN_BODY=true
ports: ports:
- '80:80' - '80:80'
- '443:443' - '443:443'
@ -34,11 +35,11 @@ services:
- /var/lib/onlyoffice/documentserver/App_Data/cache/files - /var/lib/onlyoffice/documentserver/App_Data/cache/files
- /var/www/onlyoffice/documentserver-example/public/files - /var/www/onlyoffice/documentserver-example/public/files
- /usr/share/fonts - /usr/share/fonts
secrets: #secrets:
- dbUser # - dbUser
- dbPass # - dbPass
- jwtSecret # - jwtSecret
- jwtHeader # - jwtHeader
onlyoffice-rabbitmq: onlyoffice-rabbitmq:
container_name: onlyoffice-rabbitmq container_name: onlyoffice-rabbitmq
@ -55,7 +56,7 @@ services:
- POSTGRES_USER=onlyoffice - POSTGRES_USER=onlyoffice
- POSTGRES_HOST_AUTH_METHOD=trust - POSTGRES_HOST_AUTH_METHOD=trust
# NOTE: Comment lines POSTGRES_HOST_AUTH_METHOD and POSTGRES_USER if you want use access with secrets. # 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_USER_FILE=/run/secrets/dbUser
#- POSTGRES_PASSWORD_FILE=/run/secrets/dbPass #- POSTGRES_PASSWORD_FILE=/run/secrets/dbPass
restart: always restart: always
@ -63,19 +64,19 @@ services:
- '5432' - '5432'
volumes: volumes:
- postgresql_data:/var/lib/postgresql - postgresql_data:/var/lib/postgresql
secrets: #secrets:
- dbUser # - dbUser
- dbPass # - dbPass
secrets: #secrets:
dbUser: # dbUser:
external: true # external: true
dbPass: # dbPass:
external: true # external: true
jwtSecret: # jwtSecret:
external: true # external: true
jwtHeader: # jwtHeader:
external: true # external: true
volumes: volumes:
postgresql_data: postgresql_data: