24 lines
802 B
YAML
24 lines
802 B
YAML
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 |