25 lines
597 B
Bash
Executable file
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"
|