add docker-compose file

This commit is contained in:
Robert Dyer
2024-12-10 16:48:36 -06:00
parent a0aed20684
commit b9b8965d7e
2 changed files with 37 additions and 2 deletions
+30 -2
View File
@@ -10,11 +10,39 @@ WORKDIR /usr/src/app
# Create the cache directory # Create the cache directory
RUN mkdir -p ./cache && chown node:node ./cache RUN mkdir -p ./cache && chown node:node ./cache
# Define environment variable # Define environment variables
ENV NODE_ENV=production ENV NODE_ENV=production
# Allow self-signed SSL certs
ENV ACTUAL_SERVER_URL=""
ENV ACTUAL_SERVER_PASSWORD=""
ENV ACTUAL_SYNC_ID=""
# allow self-signed SSL certs
ENV NODE_TLS_REJECT_UNAUTHORIZED=0 ENV NODE_TLS_REJECT_UNAUTHORIZED=0
# optional, for encrypted files
ENV ACTUAL_FILE_PASSWORD=""
# optional, if you want to use a different cache directory
ENV ACTUAL_CACHE_DIR="./cache"
# optional, name of the payee for added interest transactions
ENV INTEREST_PAYEE_NAME="Loan Interest"
# optional, name of the payee for added interest transactions
ENV INVESTMENT_PAYEE_NAME="Investment"
# optional, name of the cateogry group for added investment tracking transactions
ENV INVESTMENT_CATEGORY_GROUP_NAME="Income"
# optional, name of the category for added investment tracking transactions
ENV INVESTMENT_CATEGORY_NAME="Investment"
# optional, for logging into SimpleFIN
ENV SIMPLEFIN_CREDENTIALS=""
# optional, for retrieving Bitcoin Price (these default to Kraken USD)
ENV BITCOIN_PRICE_URL="https://api.kraken.com/0/public/Ticker?pair=xbtusd"
ENV BITCOIN_PRICE_JSON_PATH="result.XXBTZUSD.c[0]"
ENV BITCOIN_PAYEE_NAME="Bitcoin Price Change"
# Copy the current directory contents into the container at /usr/src/app # Copy the current directory contents into the container at /usr/src/app
COPY --chown=node:node . . COPY --chown=node:node . .
+7
View File
@@ -0,0 +1,7 @@
services:
acutal-helpers:
container_name: actual-helpers
image: ghcr.io/psybers/actual-helpers:latest
env_file: .env
## uncomment the line below to specify the default script
#command: sync-banks.js