Commit 9d318790 authored by Stephane's avatar Stephane
Browse files

Squashed commit of the following:

commit e397e27a
Author: Merrick28 <stephane.dewitte@gmail.com>
Date:   Fri Feb 9 05:57:58 2018 +0100

    Corrections

commit ebe7834a
Author: Merrick28 <stephane.dewitte@gmail.com>
Date:   Wed Feb 7 07:48:13 2018 +0100

    Add docker-compose
parent 6d9cb4fb
Pipeline #38734 passed with stages
in 6 minutes and 20 seconds
; Hi there! This is the configuration file for Kresus. Please make sure to
; read all the options before setting up Kresus for the first time.
[kresus]
; This is where Kresus stores additional data, as the latest bank scrapping
; modules. It should be writeable by the user which launches the Kresus
; executable.
; Can be removed; defaults to HOME_DIR/.kresus.
; Overridden by the KRESUS_DIR environment variable, if it's set.
; Example:
; dataDir=/home/ben/.kresus
datadir=
; The host on which the Kresus server will listen to.
; Can be removed; defaults to "127.0.0.1".
; Overridden by the HOST environment variable, if it's set.
host=127.0.0.1
; This is the port that Kresus will run on. It is recommended not to
; expose it on port 80 directly but to use a reverse-proxy configuration
; like Nginx, Caddy or Apache.
; Can be removed; defaults to 9876.
; Overridden by the PORT environment variable, if it's set.
port=9876
; The directory prefix in the URL, if Kresus is to be served from a
; subdirectory. For instance, if your website is hosted at example.com and
; the url prefix is "money", then Kresus will be reachable at
; example.com/money.
; Can be removed; defaults to "", i.e. Kresus has its own (sub)domain.
; Overridden by the KRESUS_URL_PREFIX environment variable, if it's set.
; Example:
; url_prefix=/money
url_prefix=
; The executable version of Python that is going to get used when interacting
; with Python scripts. This can be python, python2 or python3.
; Can be removed; defaults to "python2".
; Overridden by the KRESUS_PYTHON_EXEC environment variable, if it's set.
; Example:
; python_exec=python3
python_exec=
[weboob]
; The directory in which Weboob core is stored.
; Can be removed; defaults to "", indicating that weboob is already in the
; PYTHON_PATH (e.g. installed at the global level).
; Overridden by the KRESUS_WEBOOB_DIR environment variable, if it's set.
; Example:
; srcdir=/home/ben/code/weboob
srcdir=
; Path to a file containing a valid Weboob's source list directory.
; Can be removed; defaults to "", indicating that Kresus will generate its own
; source list file and will store it in ${datadir}/weboob-data/sources.list.
; Overridden by the KRESUS_WEBOOB_SOURCES_LIST environment variable, if it's
; set.
; Example:
; sources_list/home/ben/code/weboob/sources.list
sources_list=
[email]
; The transport method you want to use. Can be either:
; * "sendmail": relies on sendmail executable to be available on your system
; and only sendmail-specific parameters are used,
; * "smtp": you should provide proper SMTP credentials to use, in the dedicated
; configuration entries.
;
; Can be removed; defaults to "", which means no emails will be sent.
; Overridden by the KRESUS_EMAIL_TRANSPORT environment variable, if it's set.
transport=smtp
; The path to the sendmail executable to use.
; Can be removed; defaults to "", which means defaults to "sendmail"
; executable.
; Overridden by the KRESUS_EMAIL_SENDMAIL_BIN environment variable, if it's
; set.
sendmail_bin=
; The email address from which email alerts will be sent. Make sure that
; your domain DNS is correctly configured and that you've done what's
; needed to prevent email alerts from landing in the spam folder.
; Can be removed; defaults to "", which means no email will be sent.
; Overridden by the KRESUS_EMAIL_FROM environment variable, if it's set.
from=me@mydomain.com
; The network address (ipv4, ipv6 or FQDN) of the SMTP server.
; Can be removed; defaults to "", which means no email will be sent.
; Overridden by the KRESUS_EMAIL_HOST environment variable, if it's set.
host=postfix
; The port to which the SMTP server listens. Default values tend to be
; 25 (server to server), or 587 (clients to server), or 465 (nonstandard).
; Can be removed; defaults to "", which means no email will be sent.
; Overridden by the KRESUS_EMAIL_PORT environment variable, if it's set.
port=25
; The username used during authentication to the SMTP server.
; Can be removed; defaults to "", which means an anonymous connection.
; Overridden by the KRESUS_EMAIL_USER environment variable, if it's set.
user=
; The password used during authentication to the SMTP server.
; Can be removed; defaults to "", which means no password.
; Overridden by the KRESUS_EMAIL_PASSWORD environment variable, if it's set.
password=
; If set to true, will force using a TLS connection. By default, emails
; are sent with STARTTLS, i.e. using TLS if available.
; Can be removed; defaults to false.
; Overridden by the KRESUS_EMAIL_FORCE_TLS environment variable, if it's set.
force_tls=false
; If set to false, will allow self-signed TLS certificates.
; Can be removed; defaults to true.
; Overridden by the KRESUS_EMAIL_REJECT_UNAUTHORIZED_TLS environment
; variable, if it's set.
reject_unauthorized_tls=true
# The full FQDN of the server (or your IP address)
MY_DOMAIN=myserver.mydomain.com
# My mail address (to receive letsencrypt alerts)
MAIL_ADDRESS=me@mydomain.com
# My username (for http identification)
MY_USERNAME=me
# My password
# generated by the command (default : test)
# htpasswd -bn me my_password |awk -F':' '{print $2}'
MY_PASSWD=$apr1$JZCp/lRN$MbTHWHtBss6Yl4M.Xqgyv/
\ No newline at end of file
#################################################
# Docker compose for kresus, with mail included
#################################################
# How to use this file :
# You need docker-compose installed
# 1 - rename the docker-compose-example.env to .env file
# 2 - generate a password
# htpasswd -bn my_user my_password |awk -F':' '{print $2}'
# This will generate a password for my_user, copy it
# 3 -replace all vars in the .env file
# 4 - rename docker-compose.example.yml to docker-compose.yml
# 5 - docker-compose up -d
##################################################
version: '2'
services:
###################################
# TRAEFIK
###################################
traefik:
image: traefik:v1.5.0-rc5
command: --web --docker --docker.domain=docker.localhost --entryPoints='Name:https Address::443 TLS' --entryPoints='Name:http Address::80 Redirect.EntryPoint:https' --acme.entrypoint=https --acme=true --acme.domains=" ${MY_DOMAIN}" --acme.email="${MAIL_ADDRESS}" --acme.ondemand=true acme.onhostrule=true --acme.storage=/certs/acme.json --acme.httpchallenge.entrypoint=http
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /dev/null:/traefik.toml
- /opt/traefik:/etc/traefik/acme
- /opt/certs:/certs
labels:
- "traefik.backend=traefik"
- "traefik.frontend.rule=Host:${MY_DOMAIN};PathPrefix:/traefik"
- "traefik.backend.port=8080"
- "traefik.frontend.auth.basic=${MY_USERNAME}:${MY_PASSWD}"
- "traefik.frontend.entryPoints=https,http"
container_name: traefik
############################################
# Postfix
############################################
postfix:
image: mwader/postfix-relay
environment:
- POSTFIX_myhostname=${MY_DOMAIN}
- OPENDKIM_DOMAINS=${MY_DOMAIN}
volumes:
- /opt/postfix:/etc/opendkim/keys
##############################################
# KRESUS
##############################################
kresus:
image: bnjbvr/kresus
volumes:
- /opt/kresus:/home/user/data
- /opt/weboob:/weboob
- ./config.ini:/opt/config.ini
environment:
- LOCAL_USER_ID=1000
labels:
- "traefik.backend=kresus"
- "traefik.frontend.rule=Host:${MY_DOMAIN}"
- "traefik.backend.port=9876"
- "traefik.frontend.auth.basic=${MY_USERNAME}:${MY_PASSWD}"
- "traefik.frontend.entryPoints=http,https"
links:
- postfix:postfix
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment