From cb9361aaa16d024cb9d607cc0a7b17933523657f Mon Sep 17 00:00:00 2001 From: root Date: Mon, 28 Jul 2025 05:42:54 +0000 Subject: [PATCH] Implemented Baikal --- .env | 1 + docker-compose.yml | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .env create mode 100644 docker-compose.yml diff --git a/.env b/.env new file mode 100644 index 0000000..2225d1e --- /dev/null +++ b/.env @@ -0,0 +1 @@ +BAIKAL_BASE_PATH=/data/baikal/ \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..77d5185 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,24 @@ +services: + + # This service run as root to change the permissions to bind mounted folder + # After this, the actual container is able to create files and folders inside the mounts + init-permissions: + image: busybox + command: sh -c "mkdir -p /var/www/html/Specific /var/www/html/config && chown -R 1000:1000 /var/www/html/Specific /var/www/html/config" + volumes: + - ${BAIKAL_BASE_PATH}/data:/var/www/html/Specific + - ${BAIKAL_BASE_PATH}/config:/var/www/html/config + user: root + restart: "no" + + baikal: + image: ckulka/baikal + depends_on: + - init-permissions + container_name: baikal + ports: + - "8080:80" + volumes: + - ${BAIKAL_BASE_PATH}/data:/var/www/html/Specific + - ${BAIKAL_BASE_PATH}/config:/var/www/html/config + restart: unless-stopped \ No newline at end of file