This image runs GnuCash with a web-based GUI, accessible via HTTPS.
Create a docker-compose.yml file with the following content:
services:
gnucash:
image: arturklauser/gnucash:v1.2.0
container_name: gnucash
restart: unless-stopped
ports:
- "5800:5800"
volumes:
- "${CONFIG_DIR:-./config}:/config:rw"
- "${DATA_DIR:-./data}:/data:rw"
environment:
- TZ=${TZ:-America/Los_Angeles}
- USER_ID=${USER_ID:?unset}
- GROUP_ID=${GROUP_ID:?unset}
- WEB_AUTHENTICATION
- WEB_AUTHENTICATION_USERNAME
- WEB_AUTHENTICATION_PASSWORD
- OAUTH2_PROXY
Create the volume directories:
mkdir config data
Run the container:
USER_ID=$(id -u) GROUP_ID=$(id -g) docker compose up -d
CONFIG_DIR and DATA_DIR environment
variables to override the default host paths for the configuration and
data directories.Access the interface at https://localhost:5800.
/config/certs.Shut down the container:
The container is designed to run continuously. To shut it down, first quit
GnuCash in the GUI to release the lock on the data file. Then run:
USER_ID=$(id -u) GROUP_ID=$(id -g) docker down
docker run -d \
--name=gnucash \
-p 5800:5800 \
-v ${CONFIG_DIR:-$(pwd)/config}:/config:rw \
-v ${DATA_DIR:-$(pwd)/data}:/data:rw \
-e USER_ID=$(id -u) \
-e GROUP_ID=$(id -g) \
arturklauser/gnucash:v1.2.0
For more details, configuration options, and source code, please visit the GitHub repository.
Content type
Image
Digest
sha256:52301bb58…
Size
386.6 MB
Last updated
5 months ago
docker pull arturklauser/gnucash