services: add Fava
This commit is contained in:
parent
1800dec873
commit
2e9d5d71a0
|
@ -314,3 +314,15 @@ services:
|
|||
ports:
|
||||
- 22000:22000
|
||||
- 21027:21027/udp
|
||||
|
||||
fava:
|
||||
image: yegle/fava
|
||||
restart: unless-stopped
|
||||
container_name: fava
|
||||
env_file:
|
||||
- ./fava/fava.env
|
||||
volumes:
|
||||
- ~/fava:/bean
|
||||
expose:
|
||||
- 5000
|
||||
user: 1000:1000
|
||||
|
|
1
fava/fava.env
Normal file
1
fava/fava.env
Normal file
|
@ -0,0 +1 @@
|
|||
BEANCOUNT_FILE=/bean/finances.bean
|
33
letsencrypt/nginx/proxy-confs/fava.subdomain.conf
Normal file
33
letsencrypt/nginx/proxy-confs/fava.subdomain.conf
Normal file
|
@ -0,0 +1,33 @@
|
|||
# make sure that your dns has a cname set for fava and that your fava container is not using a base url
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
|
||||
server_name fava.*;
|
||||
|
||||
include /config/nginx/ssl.conf;
|
||||
|
||||
client_max_body_size 0;
|
||||
|
||||
# enable for ldap auth, fill in ldap details in ldap.conf
|
||||
#include /config/nginx/ldap.conf;
|
||||
|
||||
location / {
|
||||
# enable the next two lines for http auth
|
||||
#auth_basic "Restricted";
|
||||
#auth_basic_user_file /config/nginx/.htpasswd;
|
||||
|
||||
# enable the next two lines for ldap auth
|
||||
#auth_request /auth;
|
||||
#error_page 401 =200 /login;
|
||||
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app fava;
|
||||
set $upstream_port 5000;
|
||||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
}
|
||||
}
|
Reference in a new issue