Implemented Baikal

This commit is contained in:
root 2025-07-28 05:42:54 +00:00
commit cb9361aaa1
2 changed files with 25 additions and 0 deletions

1
.env Normal file
View File

@ -0,0 +1 @@
BAIKAL_BASE_PATH=/data/baikal/

24
docker-compose.yml Normal file
View File

@ -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