feat(pod): link all services under a single pod

This commit is contained in:
Marc 2024-02-05 00:23:09 -05:00
parent 2537fd43ff
commit ca30887fc7
Signed by: marc
GPG key ID: 048E042F22B5DC79
5 changed files with 11 additions and 20 deletions

4
pod.sh Normal file
View file

@ -0,0 +1,4 @@
#!/bin/bash
podman pod exists services
test $? -eq 0 || podman pod create services

View file

@ -2,11 +2,9 @@
source constants.sh
podman network create $NETWORK_NAME || echo "Network $NETWORK_NAME already exists"
podman run \
--detach \
--network $NETWORK_NAME \
--pod services \
--name $DB_CONTAINER_NAME \
--env-file $ENV_FILE_DIR/bitwarden-db.env \
--mount type=bind,source=$APP_DATA_DIR/bitwarden/db,target=/var/lib/mysql \
@ -14,10 +12,9 @@ podman run \
podman run \
--detach \
--network $NETWORK_NAME \
--pod services \
--name $APP_CONTAINER_NAME \
--env-file $ENV_FILE_DIR/bitwarden-web.env \
--publish 8080:8080 \
--mount type=bind,source=$APP_DATA_DIR/bitwarden/config,target=/etc/bitwarden \
--mount type=bind,source=$APP_DATA_DIR/bitwarden/logs,target=/var/log/bitwarden \
$APP_IMAGE_NAME:$IMAGE_VERSION

View file

@ -2,21 +2,19 @@
source constants.sh
podman network create $NETWORK_NAME || echo "Network $NETWORK_NAME already exists"
podman run \
--detach \
--network $NETWORK_NAME \
--pod services \
--name $DB_CONTAINER_NAME \
--env-file $ENV_FILE_DIR/bookstack-db.env \
--mount type=bind,source=$APP_DATA_DIR/bookstack-db,target=/var/lib/mysql \
$DB_IMAGE_NAME:$IMAGE_VERSION
mariadb:10.6 \
--port 3307
podman run \
--detach \
--network $NETWORK_NAME \
--pod services \
--name $APP_CONTAINER_NAME \
--env-file $ENV_FILE_DIR/bookstack-app.env \
--publish 6875:80 \
--mount type=bind,source=$APP_DATA_DIR/bookstack-app,target=/config \
$APP_IMAGE_NAME:$IMAGE_VERSION

View file

@ -2,16 +2,11 @@
source constants.sh
podman network create $NETWORK_NAME || echo "Network $NETWORK_NAME already exists"
podman run \
--detach \
--network $NETWORK_NAME \
--pod services \
--name $APP_CONTAINER_NAME \
--env-file $ENV_FILE_DIR/deluge.env \
--publish 8112:8112 \
--publish 6881:6881/udp \
--publish 6881:6881/tcp \
--mount type=bind,source=$APP_DATA_DIR/deluge/config,target=/config \
--mount type=bind,source=$APP_DATA_DIR/deluge/downloads,target=/downloads \
--mount type=bind,source=$STORAGE_DIR,target=/complete \

View file

@ -2,11 +2,8 @@
source constants.sh
podman network create $NETWORK_NAME || echo "Network $NETWORK_NAME already exists"
podman run \
--detach \
--network $NETWORK_NAME \
--name $APP_CONTAINER_NAME \
--env-file $ENV_FILE_DIR/plex.env \
--publish 32401:32400 \