example updated

This commit is contained in:
Darren Nathanael 2022-03-31 20:08:36 -04:00 committed by GitHub
parent 117a716b1b
commit 3776e2bcdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -12,10 +12,9 @@ $ docker run --rm -p 8000:8000 DarrenOfficial/dpaste:latest
The dpaste image serves the project using uWSGi and is ready for production-like environments. However its encouraged to use an external database to store the data. See the example below for all available options, specifically `DATABASE_URL`:
```bash
$ docker run --rm --name db1 --detach postgres:latest
$ docker run --rm -p 12345:12345 \
--link db1 \
-e DATABASE_URL=postgres://postgres@db1:5432/postgres \
-e DATABASE_URL=postgres://dpaste:supersecureposgrespassword@127.0.0.1:5432/postgres \
-e DEBUG=True \
-e SECRET_KEY=super-secure-key \
-e PORT=12345 \
@ -112,4 +111,4 @@ After compilation the CSS and JS files are stored in `dpaste/static/` where they
!!! note "Note"
These files are not commited to the project repository, however they are part of the pypi wheel package, since users couldnt compile those once they are within Pythons site-packages.
These files are not commited to the project repository, however they are part of the pypi wheel package, since users couldnt compile those once they are within Pythons site-packages.