mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-04-29 10:47:12 -04:00
Merge pull request #21 from ylavoie/docker-compose-instructions
Update README with docker-compose instructions
This commit is contained in:
commit
d808dd0b14
25
README.md
25
README.md
@ -37,7 +37,26 @@ could require additional setup of a mail service or CUPS printer service.
|
||||
|
||||
# How to use this image
|
||||
|
||||
## Start a postgres instance
|
||||
This image can be installed either automatically with the Docker compose file
|
||||
manually with docker only.
|
||||
|
||||
## 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,
|
||||
adjust environment variables, start and stop LedgerSMB. The only instructions
|
||||
required, after the optional edition of the file to adjust the environment
|
||||
variables, are:
|
||||
|
||||
```plain
|
||||
$ docker-compose pull
|
||||
$ docker-compose up
|
||||
```
|
||||
|
||||
|
||||
## Manual installation
|
||||
|
||||
### Start a postgres instance
|
||||
|
||||
```plain
|
||||
$ docker run -d --name postgres \
|
||||
@ -61,7 +80,7 @@ please use these commands instead:
|
||||
postgres:latest
|
||||
```
|
||||
|
||||
## Start LedgerSMB
|
||||
### Start LedgerSMB
|
||||
|
||||
```plain
|
||||
$ docker run -d -p 5762:5762 --name myledger \
|
||||
@ -72,7 +91,7 @@ This command maps port 5762 of your container to port 5762 in your host. The
|
||||
web application inside the container should now be accessible through
|
||||
http://localhost:5762/setup.pl.
|
||||
|
||||
## Set up LedgerSMB
|
||||
# Set up LedgerSMB
|
||||
|
||||
* Visit http://myledger:5762/setup.pl.
|
||||
* Log in with the "postgres" user and the password `mysecretpassword`
|
||||
|
Loading…
Reference in New Issue
Block a user