From d04b9aa750dc22926ff8560ab2ce5afc88a3d51e Mon Sep 17 00:00:00 2001 From: Lexie Malina Date: Sat, 18 Nov 2023 11:20:45 -0600 Subject: [PATCH] Add pod to nextcloud containers --- nextcloud/container-nextcloud-mariadb.service | 6 ++++-- nextcloud/container-nextcloud.service | 2 +- shlink/container-shlink.service | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/nextcloud/container-nextcloud-mariadb.service b/nextcloud/container-nextcloud-mariadb.service index 21ab79c..3bb8866 100644 --- a/nextcloud/container-nextcloud-mariadb.service +++ b/nextcloud/container-nextcloud-mariadb.service @@ -7,8 +7,10 @@ Description=Podman nextcloud-mariadb Documentation=man:podman-generate-systemd(1) Wants=network-online.target After=network-online.target +After=container-nextcloud-mariadb.service RequiresMountsFor=%t/containers + [Service] Environment=PODMAN_SYSTEMD_UNIT=%n Restart=always @@ -23,8 +25,8 @@ ExecStart=/usr/bin/podman run \ -d \ -e MARIADB_DATABASE=nextcloud \ -e MARIADB_ROOT_PASSWORD=MajorMalfunciton507 \ - --pod matomo \ - --name matomo-mariadb docker.io/mariadb:latest + --pod nextcloud \ + --name nextcloud-mariadb docker.io/mariadb:latest ExecStop=/usr/bin/podman stop \ --ignore -t 10 \ --cidfile=%t/%n.ctr-id diff --git a/nextcloud/container-nextcloud.service b/nextcloud/container-nextcloud.service index 643a522..337857e 100644 --- a/nextcloud/container-nextcloud.service +++ b/nextcloud/container-nextcloud.service @@ -21,7 +21,7 @@ ExecStart=/usr/bin/podman run \ --replace \ --label io.containers.autoupdate=registry \ -d \ - -p 8001:80 \ + --pod nextcloud \ --mount type=bind,source=/data/nextcloud/,target=/var/www/html \ --name Nextcloud docker.io/library/nextcloud:apache ExecStop=/usr/bin/podman stop \ diff --git a/shlink/container-shlink.service b/shlink/container-shlink.service index f8231bf..404fe60 100644 --- a/shlink/container-shlink.service +++ b/shlink/container-shlink.service @@ -7,6 +7,7 @@ Description=Podman shlink h.orny.cc Documentation=man:podman-generate-systemd(1) Wants=network-online.target After=network-online.target +After=container-shlink-mariadb.service RequiresMountsFor=%t/containers [Service] -- 2.42.0