commit cb9361aaa16d024cb9d607cc0a7b17933523657f Author: root Date: Mon Jul 28 05:42:54 2025 +0000 Implemented Baikal 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