Clarify and simplify use of the containers

This commit is contained in:
Erik Huelsmann 2021-12-11 21:39:51 +01:00
parent 3a86482a97
commit 230a7ddfae
2 changed files with 18 additions and 6 deletions

View File

@ -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 This image can be installed either automatically with the Docker compose file
or manually with docker only. 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 This image provides `docker-compose.yml` which can be used to pull related
images, install them, establish an internal network for their communications, images, install them, establish an internal network for their communications,
@ -56,15 +56,27 @@ variables, are:
```plain ```plain
$ docker-compose pull $ 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 This will set up two containers: (1) a PostgreSQL container with persistent
storage which is retained between container updates and (2) a LedgerSMB storage which is retained between container updates and (2) a LedgerSMB
container configured to connect to the PostgreSQL container as its database 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 ```plain
username: postgres username: postgres

View File

@ -19,7 +19,7 @@ services:
image: postgres:12-alpine image: postgres:12-alpine
environment: environment:
# Replace the password below for a secure setup # Replace the password below for a secure setup
POSTGRES_PASSWORD: abc POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-abc}
PGDATA: /var/lib/postgresql/data/pgdata PGDATA: /var/lib/postgresql/data/pgdata
networks: networks:
- internal - internal
@ -47,7 +47,7 @@ services:
# improve the performance experience, increase memory and the # improve the performance experience, increase memory and the
# number of workers # number of workers
# #
LSMB_WORKERS: 2 LSMB_WORKERS: ${LSMB_WORKERS:-5}
# #
# #