Compare commits

...

2 commits

Author SHA1 Message Date
f3bc722fb2 Add collective-score-rust 2024-03-12 03:04:52 +01:00
1e67627241 Add mdbook-course installation step to comprehensive-rust 2024-03-11 01:49:36 +01:00
6 changed files with 43 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

@ -4,4 +4,5 @@ set -l container_name comprehensive-rust
mkdir -p ~/volumes/$container_name mkdir -p ~/volumes/$container_name
cargo install --path ~/code/comprehensive-rust/mdbook-course
mdbook build -d ~/volumes/$container_name ~/code/comprehensive-rust mdbook build -d ~/volumes/$container_name ~/code/comprehensive-rust

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