To get a working development environment with frontend, backend, database and hot reloading of all, just run:
docker compose upYou can populate your database with some random data using
docker compose exec backend deno task cli generate-raidsTo get deno for linting and such, use the nix shell or get it else where.
nix develop -c $SHELLAutomated, just do this
git push origin mainMake sure to fill out the
<SECRET>stuff with actual secrets
services:
softresio:
image: "ghcr.io/kofoednielsen/softresio:latest"
ports:
- "0.0.0.0:80:8000"
environment:
DATABASE_PASSWORD: "<SECRET_DATABASE_PASSWORD>"
DATABASE_USER: "softres"
DOMAIN: "<YOUR_DOMAIN_NAME>"
SCHEME: "https"
JWT_SECRET: "<SECRET_JWT_TOKEN>"
depends_on:
database:
condition: "service_healthy"
database:
image: "postgres:18"
environment:
POSTGRES_PASSWORD: "<SECRET_DATABASE_PASSWORD>"
POSTGRES_USER: "softres"
volumes:
- "softres-database:/var/lib/postgresql/18/docker"
healthcheck:
test: ["CMD-SHELL", "pg_isready --username softres"]
interval: 1s
timeout: 5s
retries: 5
volumes:
softres-database:Go to https://discord.com/developers/applications and create an application.
Then add the following environment variables to your compose.yml
DISCORD_LOGIN_ENABLED: "true"
DISCORD_CLIENT_ID: "<From the link above>"
DISCORD_CLIENT_SECRET: "<Also from the link above>"