]> git.t-ch.net - podman-systemd-services.git/commitdiff
Add pod to nextcloud containers
authorLexie Malina <alex@t-ch.net>
Sat, 18 Nov 2023 17:20:45 +0000 (11:20 -0600)
committerLexie Malina <alex@t-ch.net>
Sat, 18 Nov 2023 17:20:45 +0000 (11:20 -0600)
nextcloud/container-nextcloud-mariadb.service
nextcloud/container-nextcloud.service
shlink/container-shlink.service

index 21ab79ce18983a8e43da07189a0a095f1a627c73..3bb88668422dbbae5393b83342242b0ffc4336df 100644 (file)
@@ -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
index 643a522204b34707f4d0d9a58d3c4a38ea833951..337857ee915e562d98c1d5f4b4ba27ae534ec1ae 100644 (file)
@@ -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 \
index f8231bf8c0f338ce3a9d4a5b64b1a44e64a1c63c..404fe60e90afe19ec30aa94af26a676e36a04028 100644 (file)
@@ -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]