1
- version : ' 2'
2
-
1
+ version : ' 3.7'
3
2
services :
3
+
4
4
ssp-app :
5
5
image : tiredofit/self-service-password:latest
6
6
container_name : ssp-app
7
+ labels :
8
+ - traefik.enable=true
9
+ - traefik.frontend.rule=Host:url.example.com
10
+ - traefik.port=80
11
+ - traefik.protocol=http
12
+ - traefik.docker.network=proxy
13
+ - traefik.backend=ssp-app
7
14
volumes :
8
15
- ./data/:/www/ssp
9
16
- ./logs/:/www/logs
10
17
environment :
11
- - VIRTUAL_HOST=url.hostname.com
12
- - VIRTUAL_NETWORK=nginx-proxy
13
- - VIRTUAL_PORT=80
14
- - LETSENCRYPT_HOST=url.hostname.com
15
-
16
-
17
- - ZABBIX_HOSTNAME=ssp-app
18
-
19
18
- LDAP_SERVER=ldap://openldap.example.com
20
19
- LDAP_STARTTLS=false
21
20
- LDAP_BINDDN=cn=admin,dc=example,dc=com
@@ -24,122 +23,121 @@ services:
24
23
- LDAP_LOGIN_ATTRIBUTE=uid
25
24
- LDAP_FULLNAME_ATTRIBUTE=cn
26
25
27
- # Active Directory mode
28
- # true: use unicodePwd as password field
29
- # false: LDAPv3 standard behavior
26
+ # Active Directory mode
27
+ # true: use unicodePwd as password field
28
+ # false: LDAPv3 standard behavior
30
29
- ADMODE=false
31
- # Force account unlock when password is changed
30
+ # Force account unlock when password is changed
32
31
- AD_OPT_FORCE_UNLOCK=false
33
- # Force user change password at next login
32
+ # Force user change password at next login
34
33
- AD_OPT_FORCE_PWD_CHANGE=false
35
- # Allow user with expired password to change password
34
+ # Allow user with expired password to change password
36
35
- AD_OPT_CHANGE_EXPIRED_PASSWORD=false
37
36
38
- # Samba mode
39
- # true: update sambaNTpassword and sambaPwdLastSet attributes too
40
- # false: just update the password
37
+ # Samba mode
38
+ # true: update sambaNTpassword and sambaPwdLastSet attributes too
39
+ # false: just update the password
41
40
- SAMBA_MODE=false
42
41
43
- # Shadow options - require shadowAccount objectClass
44
- # Update shadowLastChange
42
+ # Shadow options - require shadowAccount objectClass
43
+ # Update shadowLastChange
45
44
- SHADOW_OPT_UPDATE_SHADOWLASTCHANGE=false
46
- # Hash mechanism for password:
47
- # SSHA
48
- # SHA
49
- # SMD5
50
- # MD5
51
- # CRYPT
52
- # clear (the default)
53
- # auto (will check the hash of current password)
54
- # This option is not used with ad_mode = true
45
+ # Hash mechanism for password:
46
+ # SSHA
47
+ # SHA
48
+ # SMD5
49
+ # MD5
50
+ # CRYPT
51
+ # clear (the default)
52
+ # auto (will check the hash of current password)
53
+ # This option is not used with ad_mode = true
55
54
- PASSWORD_HASH=auto
56
55
57
- # Local password policy
58
- # This is applied before directory password policy
59
- # Minimal length
56
+ # Local password policy
57
+ # This is applied before directory password policy
58
+ # Minimal length
60
59
- PASSWORD_MIN_LENGTH : 0
61
- # Maximal length
60
+ # Maximal length
62
61
- PASSWORD_MAX_LENGTH : 0
63
- # Minimal lower characters
62
+ # Minimal lower characters
64
63
- PASSWORD_MIN_LOWERCASE : 0
65
- # Minimal upper characters
64
+ # Minimal upper characters
66
65
- PASSWORD_MIN_UPPERCASE : 0
67
- # Minimal digit characters
66
+ # Minimal digit characters
68
67
- PASSWORD_MIN_DIGIT : 0
69
- # Minimal special characters
68
+ # Minimal special characters
70
69
- PASSWORD_MIN_SPECIAL : 0
71
- # Dont reuse the same password as currently
70
+ # Dont reuse the same password as currently
72
71
- PASSWORD_NO_REUSE=true
73
- # Show policy constraints message:
74
- # always
75
- # never
76
- # onerror
72
+ # Show policy constraints message:
73
+ # always
74
+ # never
75
+ # onerror
77
76
- PASSWORD_SHOW_POLICY=never
78
- # Position of password policy constraints message:
79
- # above - the form
80
- # below - the form
77
+ # Position of password policy constraints message:
78
+ # above - the form
79
+ # below - the form
81
80
- PASSWORD_SHOW_POLICY_POSITION=above
82
81
83
- # Who changes the password?
84
- # Also applicable for question/answer save
85
- # user: the user itself
86
- # manager: the above binddn
82
+ # Who changes the password?
83
+ # Also applicable for question/answer save
84
+ # user: the user itself
85
+ # manager: the above binddn
87
86
- WHO_CAN_CHANGE_PASSWORD=user
88
87
89
- # # Questions/answers
90
- # Use questions/answers?
91
- # true (default)
92
- # false
88
+ # # Questions/answers
89
+ # Use questions/answers?
90
+ # true (default)
91
+ # false
93
92
- QUESTIONS_ENABLED=false
94
93
95
- # # Mail
96
- # LDAP mail attribute
94
+ # # Mail
95
+ # LDAP mail attribute
97
96
- LDAP_MAIL_ATTRIBUTE=mail
98
- # Who the email should come from
97
+ # Who the email should come from
99
98
100
99
- MAIL_FROM_NAME=Password Admin
101
- # Notify users anytime their password is changed
100
+ # Notify users anytime their password is changed
102
101
- NOTIFY_ON_CHANGE=true
103
- # PHPMailer configuration (see https://github.com/PHPMailer/PHPMailer)
102
+ # PHPMailer configuration (see https://github.com/PHPMailer/PHPMailer)
104
103
- SMTP_DEBUG : 0
105
104
- SMTP_HOST=smtp.example.com
106
105
- SMTP_AUTH_ON=true
107
106
108
107
- SMTP_PASS=smtppassword
109
108
- SMTP_PORT : 587
110
109
- SMTP_SECURE_TYPE=tls
111
- - SMTP_AUTOTLS=false
112
- # # SMS
113
- # Use sms (NOT WORKING YET)
110
+ # # SMS
111
+ # Use sms (NOT WORKING YET)
114
112
- USE_SMS=false
115
- # Reset URL (if behind a reverse proxy)
113
+ # Reset URL (if behind a reverse proxy)
116
114
- IS_BEHIND_PROXY=false
117
- # Display help messages
115
+ # Display help messages
118
116
- SHOW_HELP=true
119
- # Language
117
+ # Language
120
118
- LANG=en
121
- # Debug mode
119
+ # Debug mode
122
120
- DEBUG_MODE=false
123
- # Encryption, decryption keyphrase
121
+ # Encryption, decryption keyphrase
124
122
- SECRETEKEY=secretkey
125
- # # CAPTCHA
126
- # Use Google reCAPTCHA (http://www.google.com/recaptcha)
123
+ # # CAPTCHA
124
+ # Use Google reCAPTCHA (http://www.google.com/recaptcha)
127
125
- USE_RECAPTCHA=false
128
- # Go on the site to get public and private key
126
+ # Go on the site to get public and private key
129
127
- RECAPTCHA_PUB_KEY=akjsdnkajnd
130
128
- RECAPTCHA_PRIV_KEY=aksdjnakjdnsa
131
- # # Default action
132
- # change
133
- # sendtoken
134
- # sendsms
129
+ # # Default action
130
+ # change
131
+ # sendtoken
132
+ # sendsms
135
133
- DEFAULT_ACTION=change
136
-
137
134
networks :
138
- - proxy-tier
135
+ - proxy
136
+ - services
139
137
restart : always
140
138
141
139
networks :
142
- proxy-tier :
143
- external :
144
- name : nginx-proxy
145
-
140
+ proxy :
141
+ external : true
142
+ services :
143
+ external : true
0 commit comments