Newer
Older
The API powering lissy.ai-rub.de
## Deployment
Open a `psql -U postgres` shell inside the PostgreSQL container and run:
```sql
CREATE USER lissy PASSWORD '1234';
CREATE DATABASE lissy OWNER lissy;
```
sudo docker build \
--build-arg DATABASE_URL=postgresql://lissy:1234@postgres:5432/lissy \
-t ai/lissy-api:latest .
sudo docker run \
--name lissy-api \
--restart unless-stopped \
-e MINIO_HOST=cdn.ai-rub.de \
-e MINIO_PORT=443 \
-e MINIO_ACCESS_KEY=lissy \
-e MINIO_SECRET_KEY=<REPLACE> \
-e MINIO_SSL=true \
-e MINIO_BUCKET=lissy \
-e DATABASE_URL=postgresql://lissy:1234@postgres:5432/lissy \
sudo docker network connect postgres lissy-api