Update Installation
parent
57b67f2f5e
commit
c1d1c5f08e
@ -1 +1,80 @@
|
||||
How to install PYRSS.
|
||||
# Installation
|
||||
|
||||
## Using Docker
|
||||
|
||||
### Dockerfile
|
||||
|
||||
``
|
||||
|
||||
### Docker Compose
|
||||
|
||||
This compose includes three services:
|
||||
- The PYRSS API & Webui (this repository)
|
||||
- The PYRSS Bot
|
||||
- A PostgreSQL Database
|
||||
|
||||
```
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
postgresql:
|
||||
container_name: pyrss-database
|
||||
image: docker.io/library/postgres:12-alpine
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready", "-d", "pyrss"]
|
||||
start_period: 20s
|
||||
interval: 30s
|
||||
retries: 5
|
||||
timeout: 5s
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=
|
||||
- POSTGRES_USER=pyrss
|
||||
- POSTGRES_DB=pyrss
|
||||
ports:
|
||||
- 5432:5432
|
||||
|
||||
pyrss-website:
|
||||
container_name: pyrss-website
|
||||
image: xordk/pyrss-website:staging
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 8000:8000 # web interface and api port
|
||||
environment:
|
||||
- DEBUG=False
|
||||
- SECRET_KEY=
|
||||
- HOST=
|
||||
- DISCORD_KEY=
|
||||
- DISCORD_SECRET=
|
||||
- DISCORD_OAUTH2_URL=
|
||||
- DISCORD_INVITE_URL=
|
||||
- DISCORD_REDIRECT_URL=
|
||||
- DISCORD_API_URL=
|
||||
- BOT_TOKEN=
|
||||
- SUPERUSER_IDS=
|
||||
|
||||
- DB_ENGINE=django.db.backends.postgresql
|
||||
- DB_NAME=pyrss
|
||||
- DB_USER=pyrss
|
||||
- DB_PASS=
|
||||
- DB_HOST=postgresql
|
||||
- DB_PORT=5432
|
||||
|
||||
pyrss-bot:
|
||||
container_name: pyrss-bot
|
||||
image: xordk/pyrss-bot:dev
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- DEVELOPING=False
|
||||
|
||||
- BOT_TOKEN=
|
||||
|
||||
- API_HOST=http://pyrss-website:8000
|
||||
- API_EXTERNAL_HOST=
|
||||
- API_TOKEN=
|
||||
|
||||
- LOGS_DIRECTORY=logs/
|
||||
- LOG_FILENAME_FORMAT_PREFIX="%Y-%m-%d %H-%M-%S"
|
||||
- MAX_LOGFILE_AGE_DAYS=7
|
||||
|
||||
- TASK_INTERVAL_MINUTES=10
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user