forked from neri/datatrash
update documentation to new environment variables
This commit is contained in:
parent
64c2567918
commit
2eb816134d
|
@ -28,9 +28,12 @@ docker-compose up -d --build
|
||||||
The static files directory needs to be next to the binary.
|
The static files directory needs to be next to the binary.
|
||||||
|
|
||||||
| environment variable | default value |
|
| environment variable | default value |
|
||||||
| -------------------- | --------------------- |
|
| -------------------- | -------------------- |
|
||||||
| DATABASE_URL | postresql://localhost |
|
| DATABASE_URL | |
|
||||||
| SERVER_URL | http://loalhost:8000 |
|
| DATABASE_USER | |
|
||||||
|
| DATABASE_PASS | |
|
||||||
|
| DATABASE_HOST | localhost |
|
||||||
|
| DATABASE_NAME | datatrash |
|
||||||
| FILES_DIR | ./files |
|
| FILES_DIR | ./files |
|
||||||
| UPLOAD_MAX_BYTES | 8388608 (8MiB) |
|
| UPLOAD_MAX_BYTES | 8388608 (8MiB) |
|
||||||
| BIND_ADDRESS | 0.0.0.0:8000 |
|
| BIND_ADDRESS | 0.0.0.0:8000 |
|
||||||
|
|
|
@ -3,7 +3,9 @@ services:
|
||||||
datatrash:
|
datatrash:
|
||||||
build: .
|
build: .
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: 'postgresql://admin:secure@postgres'
|
DATABASE_USER: admin
|
||||||
|
DATABASE_PASSWORD: secure
|
||||||
|
DATABASE_HOST: postgres
|
||||||
ports:
|
ports:
|
||||||
- '8000:8000'
|
- '8000:8000'
|
||||||
postgres:
|
postgres:
|
||||||
|
|
Loading…
Reference in New Issue