feat(pod): link all services under a single pod
This commit is contained in:
parent
2537fd43ff
commit
ca30887fc7
5 changed files with 11 additions and 20 deletions
4
pod.sh
Normal file
4
pod.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
podman pod exists services
|
||||
test $? -eq 0 || podman pod create services
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
Reference in a new issue