mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-04-11 19:27:11 -04:00
Clarify and simplify use of the containers
This commit is contained in:
parent
3a86482a97
commit
230a7ddfae
20
README.md
20
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
|
||||
|
@ -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}
|
||||
#
|
||||
#
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user