Compare commits
2 commits
df86573776
...
f3bc722fb2
Author | SHA1 | Date | |
---|---|---|---|
f3bc722fb2 | |||
1e67627241 |
6 changed files with 43 additions and 0 deletions
|
@ -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
|
|
@ -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
|
3
containers/collective-score-rust/collective-score-rust.fish
Executable file
3
containers/collective-score-rust/collective-score-rust.fish
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
|
buildah build -t collective-score-rust:latest ~/code/collective-score
|
|
@ -0,0 +1 @@
|
||||||
|
[Network]
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue