This commit is contained in:
Claudio Maggioni 2020-03-26 11:17:42 +01:00
parent 1724589135
commit 13db88b810
2 changed files with 11 additions and 3 deletions

View file

@ -10,7 +10,7 @@ of `$PASSWORD` and `$SECRET` to respectively the chosen PostgreSQL password
and the JWT secret used to run the server. `$SECRET` must be at least 64 chars long.
```yaml
version: '3'
version: '2.1'
services:
smarthutdb:
@ -24,10 +24,18 @@ services:
POSTGRES_DB: smarthut
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: $PASSWORD
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 30
smarthutbackend:
restart: always
image: smarthutsm/smarthut-backend:M1
depends_on:
smarthutdb:
condition: service_healthy
ports:
- 8080:8080
environment:

View file

@ -32,11 +32,11 @@ spring.mail.properties.mail.smtp.writetimeout=5000
email.registrationSubject=Complete your SmartHut.sm registration
email.registration=To confirm your registration, please click here:
email.registrationPath=${BACKEND_URL}/register/confirm-account?token=
email.registrationSuccess=${FRONTEND_URL}
email.registrationRedirect=${FRONTEND_URL}
# Password reset email properties
email.resetpasswordSubject=SmartHut.sm password reset
email.resetpassword=To reset your password, please click here:
email.resetpasswordPath=${FRONTEND_URL}/password-reset?token=
email.resetPasswordSuccess=${FRONTEND_URL}/conf-reset-pass
email.resetPasswordRedirect=${FRONTEND_URL}/conf-reset-pass