1
0
Fork
You've already forked bettor
0
Bet on sports events with your friends and have fun! Application created with full stack Gleam.
  • Gleam 80.6%
  • PLpgSQL 18.8%
  • JavaScript 0.2%
  • Dockerfile 0.2%
  • Shell 0.1%
2026年07月05日 11:47:46 +02:00
.github split results endpoint ( #14 ) 2026年07月03日 19:44:40 +02:00
.vscode init bun project in client, switch to daisyui from bun, add VSCode setting for tailwind, configure proxy 2026年02月15日 22:50:48 +01:00
client split results endpoint ( #14 ) 2026年07月03日 19:44:40 +02:00
podman podman: update Caddyfile for better security 2026年06月28日 16:30:03 +02:00
server server (db): add indexes for tournament results performance 2026年07月05日 11:47:46 +02:00
shared server: adjust min odds value to 1.01, consistently sort tournament matches 2026年06月25日 17:48:02 +02:00
.containerignore add container configuration for application, database, and migrations; include health checks and initialization scripts 2026年04月19日 22:39:55 +02:00
.gitignore move node tool requirement to root, add more skills: caveman & frontend-design 2026年06月21日 15:57:55 +02:00
compose.production.yaml borg backups ( #1 ) 2026年05月04日 21:04:19 +02:00
compose.yaml podman: init postgres with specific locale from env var 2026年04月29日 14:27:04 +02:00
ENDPOINTS.md split results endpoint ( #14 ) 2026年07月03日 19:44:40 +02:00
LICENSE replace MIT license with Blue Oak Model License across all project files, update license references in configuration files 2026年03月30日 19:26:58 +02:00
mise.production.toml borg backups ( #1 ) 2026年05月04日 21:04:19 +02:00
mise.toml move node tool requirement to root, add more skills: caveman & frontend-design 2026年06月21日 15:57:55 +02:00
README.md docs: add deployment instructions to README 2026年06月14日 20:24:54 +02:00
seed_test.sql update match odds to support nullable scores (which are all other scores) 2026年06月10日 21:10:11 +02:00
seed_wc2026.sql tournament summary and joker usage ( #9 ) 2026年06月14日 17:40:44 +02:00
skills-lock.json move node tool requirement to root, add more skills: caveman & frontend-design 2026年06月21日 15:57:55 +02:00

Bettor

Deploying / Updating the app

# Run a manual backup before deploying to ensure data is safe
podman exec borgmatic /usr/local/bin/borgmatic --stats -v 0 2>&1
# Clean up stale network namespace references left over from previous containers
# (prevents orphaned `iptables`/`ip6tables` DNAT rules that break routing after a reboot)
podman container cleanup --all
# Bring down all containers and flush all `netavark` network rules cleanly
podman compose -f compose.yaml -f compose.production.yaml down
# Rebuild and start all containers with fresh network rules
podman compose -f compose.yaml -f compose.production.yaml up -d --build

Borgmatic backups

Running the container for the first time

Reference

When you run the container for the first time, you'll need to execute into the container and run a command to initialize the repository in the directory you've specified in your docker configuration:

podman exec -it borgmatic /bin/sh
borgmatic init --encryption repokey

In addition, it may be a good idea to manually perform a backup to ensure everything performs as expected:

podman exec -it borgmatic /bin/sh
borgmatic --stats -v 1 --files

Seeding the database with data

cat <filename> | podman exec -i postgres psql -U postgres -d bettor_app -v email='<user-email>'