docs: update docker-compose install form README
This commit is contained in:
parent
5265064b10
commit
d321e2f52c
|
@ -9,18 +9,15 @@ This installation Method is for test-setups and small-scale productive setups.
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
Download the latest `docker-compose.yml` from [here](https://raw.githubusercontent.com/BeryJu/passbook/master/docker-compose.yml). Place it in a directory of your choice.
|
|
||||||
|
|
||||||
passbook needs to know it's primary URL to create links in E-Mails and set cookies, so you have to run the following command:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
export PASSBOOK_DOMAIN=domain.tld # this can be any domain or IP, it just needs to point to passbook.
|
wget https://raw.githubusercontent.com/BeryJu/passbook/master/docker-compose.yml
|
||||||
|
# Optionally enable Error-reporting
|
||||||
|
# export PASSBOOK_ERROR_REPORTING=true
|
||||||
|
# Optionally deploy a different version
|
||||||
|
# export PASSBOOK_TAG=0.8.15-beta
|
||||||
|
# If this is a productive installation, set a different PostgreSQL Password
|
||||||
|
# export PG_PASS=$(pwgen 40 1)
|
||||||
|
docker-compose pull
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose exec server ./manage.py migrate
|
||||||
```
|
```
|
||||||
|
|
||||||
The compose file references the current latest version, which can be overridden with the `SERVER_TAG` Environment variable.
|
|
||||||
|
|
||||||
If you plan to use this setup for production, it is also advised to change the PostgreSQL Password by setting `PG_PASS` to a password of your choice.
|
|
||||||
|
|
||||||
Now you can pull the Docker images needed by running `docker-compose pull`. After this has finished, run `docker-compose up -d` to start passbook.
|
|
||||||
|
|
||||||
passbook will then be reachable on Port 80. You can optionally configure the packaged traefik to use Let's Encrypt for TLS Encryption.
|
|
||||||
|
|
Reference in New Issue