transition to container_ over podman_

This commit is contained in:
2026-02-16 10:44:38 -05:00
parent d4fbbb185f
commit 52c6dac263
39 changed files with 1038 additions and 159 deletions

View File

@@ -20,7 +20,7 @@
## Setup foobar Project
- [ ] Copy and rename this folder to active/podman_foobar
- [ ] Copy and rename this folder to active/container_foobar
- [ ] Find and replace foobar with the name of the service.
- [ ] Create the rootless user to run the podman containers
- [ ] Write the compose.yaml spec for your service
@@ -44,7 +44,7 @@ mkdir -p /home/foobar/.config/containers/systemd
### Write the foobar compose spec
Edit the compose.yaml at active/podman_foobar/compose/compose.yaml
Edit the compose.yaml at active/container_foobar/compose/compose.yaml
#### A Note on Volumes
@@ -59,8 +59,8 @@ Run the following to convert a compose.yaml into the various `.container` files
podman run \
--security-opt label=disable \
--rm \
-v $(pwd)/active/podman_foobar/:/compose \
-v $(pwd)/active/podman_foobar/quadlets:/quadlets \
-v $(pwd)/active/container_foobar/:/compose \
-v $(pwd)/active/container_foobar/quadlets:/quadlets \
quay.io/k9withabone/podlet \
-f /quadlets \
-i \
@@ -69,7 +69,7 @@ compose /compose/compose.yaml
# Copy the files to the server
export PODMAN_SERVER=
scp -r active/podman_foobar/quadlets/. $PODMAN_SERVER:/home/foobar/.config/containers/systemd/
scp -r active/container_foobar/quadlets/. $PODMAN_SERVER:/home/foobar/.config/containers/systemd/
ssh $PODMAN_SERVER chown -R foobar:foobar /home/foobar/.config/containers/systemd/
```
@@ -101,8 +101,8 @@ systemctl --user enable --now podman-auto-update.timer
### Expose foobar
1. If you need a domain, follow the [DDNS instructions](/active/podman_ddns/ddns.md#install-a-new-ddns-service)
2. For a web service, follow the [Caddy instructions](/active/podman_caddy/caddy.md#adding-a-new-caddy-record)
1. If you need a domain, follow the [DDNS instructions](/active/container_ddns/ddns.md#install-a-new-ddns-service)
2. For a web service, follow the [Caddy instructions](/active/container_caddy/caddy.md#adding-a-new-caddy-record)
3. Finally, follow your OS's guide for opening ports via its firewall service.
#### firewalld