Comments (8)
Hi!
- Here’s an updated
docker-compose.yml
file that unfortunately hasn’t been merged yet but does have the correct setup for pulling down the prebuilt container and mounting in a volume for data: https://github.com/actualbudget/actual-server/blob/jed/update-docker-compose/docker-compose.yml - The docs in activating HTTPS should work for Docker too. Specifically, you should be able to generate the
.key
and.crt
files using the methods suggested in the doc page. Then, put those files in the Actual data directory. Then you can set up either a config.json or the environment variables to point to those files. (Now that I write this up, I agree that there are some steps in there that should be added to the docs)
from actual-server.
I have offline and online backups already configured for a different directory for personal important files, so I thought I'd link the user-files directory to one in that folder.
I don’t think that would work well with Docker — Actual would see the symlink, but would not be able to access the directory it points to, I believe. Your best bet would be to directly mount the backed-up directory to /data
(e.g. /path/to/backed-up/actual:/data
). (It‘s worth backing up the server-files
directory since it has your server password and important information about the list of files)
from actual-server.
Backing up those should be enough! (But I’d recommend double-checking before you delete anything that things are working ok)
Also, if you have your budget downloaded in your browser you can log into the server again and reupload the budget if it gets lost somehow.
from actual-server.
right, I had forgotten about simply exporting the budget also 🤣
from actual-server.
nice! Thank you very much, @j-f1 <3
Generated and put the selfhosted keys on server-data
:
Modified the docker-compose.yml
:
version: "3"
services:
actual_server:
container_name: actual_server
#build:
# context: ./
# dockerfile: Dockerfile
image: jlongster/actual-server:latest-alpine
ports:
- "5006:5006"
environment:
- ACTUAL_SERVER_FILES=/data/server-files
- ACTUAL_USER_FILES=/data/user-files
- ACTUAL_HTTPS_KEY=/data/selfhost.key
- ACTUAL_HTTPS_CERT=/data/selfhost.crt
volumes:
- ./server-data:/data
restart: unless-stopped
One bad thing I noticed is that I can't create/link user-files
directory. If I do that, docker-compose up
will exit in error:
$ sudo docker-compose --env-file .env up
Creating actual_server ... done
Attaching to actual_server
actual_server | Error starting app: Error: EEXIST: file already exists, mkdir '/data/user-files'
actual_server | at Object.mkdirSync (node:fs:1395:3)
actual_server | at run (file:///app/src/app.js:56:8)
actual_server | at file:///app/app.js:3:1
actual_server | at ModuleJob.run (node:internal/modules/esm/module_job:194:25) {
actual_server | errno: -17,
actual_server | syscall: 'mkdir',
actual_server | code: 'EEXIST',
actual_server | path: '/data/user-files'
actual_server | }
But, other than that little hiccup, it's up and running <3
(edit)
next step, for tomorrow, is make it come up on boot (this old thing reboots sometimes) and start using it to get a feel of the land! gnight!
from actual-server.
One bad thing I noticed is that I can't create/link user-files directory.
Looking at the error message and underlying code, it seems like the server doesn’t see the user-files
directory and tries to create it. What specifically were you trying to do there that didn’t work?
But, other than that little hiccup, it's up and running <3
🎉
next step, for tomorrow, is make it come up on boot (this old thing reboots sometimes) and start using it to get a feel of the land! gnight!
Have fun! Good night from my end too!
from actual-server.
One bad thing I noticed is that I can't create/link user-files directory.
Looking at the error message and underlying code, it seems like the server doesn’t see the
user-files
directory and tries to create it. What specifically were you trying to do there that didn’t work?
I have offline and online backups already configured for a different directory for personal important files, so I thought I'd link the user-files
directory to one in that folder.
from actual-server.
I think I may have thought of just testing Actual, and then started using it for real... But back then I started the container back then as ...
and forgotten to map the volume. Now, the update release note says about moving from jlongster/actual-server
to actualbudget/actual-server
and when I run docker ps
I see I'm running the old one...
backing up /data/server-files
and /data/user-files
is enough, or is there something else I need to backup before killing the old container and running the new one with the backed up files mapped to it?
from actual-server.
Related Issues (20)
- Fresh Install won't load HOT 1
- Changing order of budget categories by drag and drop seems to be broken with 23.7.0 HOT 3
- Need a provider for US bank account data HOT 1
- Rename Nordigen to GoCardless HOT 1
- Post schedule transaction before due date HOT 1
- [Bug]: no such table: files HOT 3
- [Tech Debt] Ability to run DB migrations
- Default data dir on Windows HOT 2
- Remove Express "x-powered-by" header HOT 1
- GoCardless American Express HOT 3
- Deposits in expense category create issue with all future budget balances HOT 4
- [Schedules] Add category to entry
- [Feature request] Add end date to repeated Schedules HOT 2
- #Alienvault Administration HOT 1
- Api endpoint suggestion to match payee rule HOT 1
- Flip amount option with GoCardless HOT 5
- Error thrown during qfx import HOT 2
- Proposal: progress bars and targets HOT 2
- READ ME BEFORE OPENING AN ISSUE
- [Bug]: Unable to authenticate with server -> Syncing has been reset on this cloud file. HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actual-server.