Repository moved to https://codeberg.org/RailwayStations/RSInfrastructure
Docker setup via ansible inspired by https://github.com/nickjj/ansible-docker
Setup Docker and docker compose via docker.yml playbook.
ansible-playbook -i hosts.yml docker.yml --ask-become-pass --ask-vault-passSetup RSAPI on railwaystations server:
ansible-playbook -i hosts.yml rsapi.yml --ask-become-pass --ask-vault-passSetup wireguard between railway-stations.org and the monitoring server.
Install the githubixx.ansible_role_wireguard role via ansible galaxy first:
ansible-galaxy install githubixx.ansible_role_wireguardRun playbook to install wireguard on the servers:
ansible-playbook -i hosts.yml -l prod wireguard.yml --ask-become-pass --ask-vault-passSetup Uptime Kuma for railway-stations.org.
Full production setup:
ansible-playbook -i hosts.yml -l prod monitoring.yml --ask-become-pass --ask-vault-pass- Caddy: https://caddyserver.com/
 - Uptime Kuma: https://github.com/louislam/uptime-kuma
 
Create matrix access_token for rsapi user:
curl -X POST --header 'Content-Type: application/json' -d '{
    "identifier": { "type": "m.id.user", "user": "@rsapi:matrix.org" },
    "password": "rsapi-password", "type": "m.login.password"}' 'https://matrix.org/_matrix/client/r0/login'