From 05c15b61127f70126c345801a5ff6a492e9196df Mon Sep 17 00:00:00 2001 From: Rich Howell Date: Sun, 8 Jan 2023 17:28:20 +0000 Subject: [PATCH] Update Docker.md Added sample files --- docs/Installing/Docker.md | 74 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/docs/Installing/Docker.md b/docs/Installing/Docker.md index 7bbffe3b98..3454f1ead9 100644 --- a/docs/Installing/Docker.md +++ b/docs/Installing/Docker.md @@ -125,3 +125,77 @@ Since Actual doesn't know what server to use, the first thing it does is asks yo URL. If you are running this project, simply click "Use this domain" and it will automatically fill it in with the current domain. This works because we are serving the app and server in the same place. + +## Sample Files + +Below you will find a selection of sample files for Actual Budget that work with Docker + +### actual_server.env + +```bash +# This files contains all the variables you may need to change to set up Actual budget. + +# Server data location of Actual +dataPath=./data + +# Actual web app port +externalPort=5006 +``` + +### actual.subdomain.conf.sample + +```json +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name budget.*; + + 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; + + # enable for Authelia + #include /config/nginx/authelia-server.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 /ldaplogin; + + # enable for Authelia + #include /config/nginx/authelia-location.conf; + + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app actual_budget; + set $upstream_port 5006; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + } +} +``` +### docker-compose.yml + +```yml +version: "3" +services: + actual_server: + container_name: actual_server + build: + context: ./ + dockerfile: Dockerfile + ports: + - "${externalPort}:5006" + volumes: + - ${dataPath}:/data + restart: unless-stopped +``` \ No newline at end of file