Changes for README.md: 67 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -24,3 +24,70 @@ Voting system, initially developed for [XIV LO in Warsaw](https://staszic.waw.pl
- review and adjust `compose.yaml`
- run the stack (e.g. `podman compose up -d` or `docker compose up -d`)
- if not, look at `compose.yaml` and `sample.env`
## Production (traditional)
- install [uv](https://docs.astral.sh/uv/) (Debian does not have it in the official repositories, so you can download a tarball from [github](https://github.com/astral-sh/uv/releases) and extract `uv` binary to `/usr/local/bin`)
- install and start redis/valkey (Debian: `apt install valkey-server` and `systemctl start valkey-server && systemctl enable valkey-server`)
- create user, group and homedir: `useradd --system --home-dir /var/www/wybory --shell /sbin/nologin --user-group wybory && mkdir -p /var/www/wybory && chown wybory:wybory /var/www/wybory`
- clone the repo: `git clone <...> /var/www/wybory && cd /var/www/wybory`
- write the config file: `cp sample.env .env` and adjust .env to your needs