diff --git a/README.md b/README.md index 6e8d9a0..3c83af6 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ could require additional setup of a mail service or CUPS printer service. This image can be installed either automatically with the Docker compose file or manually with docker only. -## Docker-Compose installation and start +## Docker-Compose: Installation and start This image provides `docker-compose.yml` which can be used to pull related images, install them, establish an internal network for their communications, @@ -56,15 +56,27 @@ variables, are: ```plain $ docker-compose pull - $ docker-compose up + $ docker-compose up -d +``` + +Or use the following to set a different password and/or parallel processing +capacity (so called 'workers'): + +```plain + $ docker-compose pull + $ POSTGRES_PASSWORD=def \ + LSMB_WORKERS=10 \ + docker-compose up -d ``` This will set up two containers: (1) a PostgreSQL container with persistent storage which is retained between container updates and (2) a LedgerSMB container configured to connect to the PostgreSQL container as its database -server. +server. Your LedgerSMB installation should now be accessible through +[http://localhost:5762/](http://localhost:5762/). -The database username and password are: +The default number of workers is 5. The default database username and password +are: ```plain username: postgres diff --git a/docker-compose.yml b/docker-compose.yml index af4b28f..24bae6e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,7 +19,7 @@ services: image: postgres:12-alpine environment: # Replace the password below for a secure setup - POSTGRES_PASSWORD: abc + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-abc} PGDATA: /var/lib/postgresql/data/pgdata networks: - internal @@ -47,7 +47,7 @@ services: # improve the performance experience, increase memory and the # number of workers # - LSMB_WORKERS: 2 + LSMB_WORKERS: ${LSMB_WORKERS:-5} # #