Add collective-score-rust

This commit is contained in:
Mo 2024-03-12 03:04:52 +01:00
parent 1e67627241
commit f3bc722fb2
5 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,15 @@
[Container]
Image=docker.io/library/postgres:16
AutoUpdate=registry
Network=collective-score-rust.network
Volume=%h/volumes/collective-score-rust/db:/var/lib/postgresql/data:Z
EnvironmentFile=%h/volumes/collective-score-rust/.postgres.env
Environment=TZ=Europe/Berlin
Environment=PGTZ=Europe/Berlin
[Service]
Restart=always
[Install]
WantedBy=default.target

View file

@ -0,0 +1,16 @@
[Container]
Image=localhost/collective-score-rust:latest
AutoUpdate=registry
Network=traefik.network
Network=collective-score-rust.network
Volume=%h/volumes/collective-score-rust/config.toml:/volumes/config.toml:Z,ro
[Unit]
Requires=collective-score-rust-db.service
After=collective-score-rust-db.service
[Service]
Restart=always
[Install]
WantedBy=default.target

View file

@ -0,0 +1,3 @@
#!/usr/bin/env fish
buildah build -t collective-score-rust:latest ~/code/collective-score

View file

@ -0,0 +1 @@
[Network]

View file

@ -92,6 +92,9 @@ http:
to_comprehensive_rust: to_comprehensive_rust:
rule: Host(`comprehensive-rust.mo8it.com`) rule: Host(`comprehensive-rust.mo8it.com`)
service: comprehensive_rust service: comprehensive_rust
to_collective_score_rust:
rule: Host(`collective-score-rust.mo8it.com`)
service: collective_score_rust
services: services:
forgejo: forgejo:
@ -150,3 +153,7 @@ http:
loadBalancer: loadBalancer:
servers: servers:
- url: http://systemd-comprehensive-rust - url: http://systemd-comprehensive-rust
collective_score_rust:
loadBalancer:
servers:
- url: http://systemd-collective-score-rust