Update Docker.md

Added sample files
This commit is contained in:
Rich Howell
2023-01-08 17:28:20 +00:00
parent 3ed4be0ef4
commit 05c15b6112

View File

@@ -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
```