-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfava.yml
64 lines (60 loc) · 1.94 KB
/
fava.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
## This docker-compose file is designed to be used as a template in portainer.
##
## This template can be set up in your portainer "App template".
## Don't forget to set the following environment variables:
## - DOMAIN => your DNS domainname ( example.com )
## - OAUTH2_PROXY_CLIENT_ID => please see https://github.com/bitly/oauth2_proxy
## - OAUTH2_PROXY_CLIENT_SECRET => please see https://github.com/bitly/oauth2_proxy
## - OAUTH2_PROXY_COOKIE_SECRET => Some random long string
version: "3.0"
services:
fava:
image: grostim/fava-docker:latest
# image: grostim/fava-docker:Log-request
volumes:
- $MYDIR/fava:/myData
- $MYDIR/fava/cron.daily:/etc/cron.daily/fava
- $MYDIR/.ssh:/root/.ssh
- $MYDIR/.gitconfig:/root/.gitconfig
networks:
- internal
environment:
- BEANCOUNT_INPUT_FILE=/myData/Famille.beancount
- FAVA_HOST="0.0.0.0"
- FAVA_DEBUG=True
- ALPHAVANTAGE_API_KEY=$ALPHAVANTAGE_API_KEY
- QUANDL_API_KEY=$QUANDL_API_KEY
- IEX_TOKEN=$IEX_TOKEN
deploy:
fava-proxy:
image: a5huynh/oauth2_proxy
networks:
- internal
- traefik_public
deploy:
labels:
- traefik.frontend.rule=Host:fava.$DOMAIN
- traefik.docker.network=traefik_public
- traefik.port=4180
volumes:
- $MYDIR/authenticated-emails.txt:/authenticated-emails.txt
command: |
-cookie-secure=false
-upstream=http://fava:5000
-redirect-url=https://fava.$DOMAIN
-http-address=http://0.0.0.0:4180
-email-domain=$DOMAIN
-provider=google
-authenticated-emails-file=/authenticated-emails.txt
environment:
- OAUTH2_PROXY_CLIENT_ID=$OAUTH2_PROXY_CLIENT_ID
- OAUTH2_PROXY_CLIENT_SECRET=$OAUTH2_PROXY_CLIENT_SECRET
- OAUTH2_PROXY_COOKIE_SECRET=$OAUTH2_PROXY_COOKIE_SECRET
networks:
traefik_public:
external: true
internal:
driver: overlay
ipam:
config:
- subnet: 172.16.2.0/24