Compare commits

..

11 Commits

Author SHA1 Message Date
Erik Huelsmann
b7b66f6a13 * Update Dockerfile to 1.4.41 2017-04-09 14:43:16 +00:00
Erik Huelsmann
6506865f50 * Update to 1.4.40 2017-03-14 14:08:58 +00:00
John Locke
b544f42752 1.4.39 2017-03-13 13:55:13 -07:00
John Locke
57e54605fa 1.4.38 2017-01-23 06:48:08 -08:00
John Locke
308171c708 1.4.37 2017-01-08 11:00:28 -08:00
John Locke
b549b8a143 1.4.36 2016-12-12 08:40:19 -08:00
John Locke
9cda9c1dd3 1.4.34 2016-10-15 09:48:43 -07:00
John Locke
7761c46712 Set correct ssmtp path 2016-09-25 10:54:26 -07:00
John Locke
3bfa2a5ae3 1.4.33 2016-08-20 09:01:16 -07:00
John Locke
51f3dc8ab8 Add support for #4 - Make Postgres port configurable at run time 2016-08-20 08:58:19 -07:00
John Locke
2629d4052f r1.4.1 2016-07-31 08:28:38 -07:00
3 changed files with 14 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ RUN DEBIAN_FRONTENT=noninteractive && \
ssmtp
# Build time variables
ENV LSMB_VERSION 1.4.30
ENV LSMB_VERSION 1.4.41
# Install LedgerSMB
@@ -62,6 +62,8 @@ ENV SSMTP_FROMLINE_OVERRIDE YES
#ENV SSMTP_AUTH_METHOD
ENV POSTGRES_HOST postgres
ENV POSTGRES_PORT 5432
ENV DEFAULT_DB lsmb
COPY start.sh /usr/bin/start.sh
COPY update_ssmtp.sh /usr/bin/update_ssmtp.sh

View File

@@ -62,6 +62,14 @@ This environment variable is used to specify the hostname of the Postgres server
If you set this to another hostname, LedgerSMB will attempt to connect to that hostname instead.
## `POSTGRES_PORT` = 5432
Port to connect to Postgres on. Use to connect to a Postgres server running on an alternate port.
## `DEFAULT_DB` = lsmb
Set this if you want to automatically log in to a particular LSMB database.
### `SSMTP_ROOT` `SSMTP_MAILHUB` `SSMTP_HOSTNAME` `SSMTP_USE_STARTTLS` `SSMTP_AUTH_USER` `SSMTP_AUTH_PASS` `SSMTP_METHOD` `SSMTP_FROMLINE_OVERRIDE`
These variables are used to set outgoing SMTP defaults. To set the outgoing email address, set SSMTP_ROOT, and SSMTP_HOSTNAME at a minimum -- SSMTP_MAILHUB defaults to the default docker0 interface, so if your host is already configured to relay mail, this should relay successfully with only those two set.

View File

@@ -8,7 +8,9 @@ if [[ ! -f ledgersmb.conf ]]; then
sed -i \
-e "s/\(cache_templates = \).*\$/cache_templates = 1/g" \
-e "s/\(host = \).*\$/\1$POSTGRES_HOST/g" \
-e "s%\(sendmail = \).*%\1/usr/bin/ssmtp%g" \
-e "s/\(port = \).*\$/\1$POSTGRES_PORT/g" \
-e "s/\(default_db = \).*\$/\1$DEFAULT_DB/g" \
-e "s%\(sendmail = \).*%\1/usr/sbin/ssmtp%g" \
/srv/ledgersmb/ledgersmb.conf
fi