This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
spadinastan/services/bookstack/start.sh

25 lines
597 B
Bash
Executable file

#!/bin/bash
source constants.sh
podman pod create \
-p 3010:80 \
--replace \
"bookstack"
podman run \
-d \
--pod "bookstack" \
--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 \
mariadb:10.6 \
--port 3307
podman run \
-d \
--pod "bookstack" \
--name "$APP_CONTAINER_NAME" \
--env-file "$ENV_FILE_DIR"/bookstack-app.env \
--mount type=bind,source="$APP_DATA_DIR"/bookstack-app,target=/config \
"$APP_IMAGE_NAME:$IMAGE_VERSION"