CasaOS/docker/docker-compose.build.yml
Kadir Talha AK 02cbb717cf Add Docker support for multi-platform CasaOS deployment
- Add Docker Compose configurations for Ubuntu and Debian
- Include interactive startup script for easy setup
- Support for Windows, macOS, and Linux platforms
- Comprehensive documentation and troubleshooting guide
- Multiple deployment options (simple, custom build, etc.)

This community contribution enables CasaOS to run in containers,
making it accessible to users on non-Linux systems and providing
isolated testing environments.
2025-07-25 20:28:59 +03:00

51 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Docker Build tabanlı CasaOS konfigürasyonu
version: '3.8'
services:
casaos-custom:
build:
context: .
dockerfile: Dockerfile
container_name: casaos-custom
restart: unless-stopped
privileged: true
network_mode: host
volumes:
# CasaOS verileri
- casaos_data:/var/lib/casaos
- casaos_config:/etc/casaos
- casaos_share:/usr/share/casaos
# Docker socket
- /var/run/docker.sock:/var/run/docker.sock
# Sistem dosyaları
- /proc:/host/proc:ro
- /sys:/host/sys:ro
# Kullanıcı verileri
- ./data:/DATA
- ./logs:/var/log/casaos
environment:
- TZ=Europe/Istanbul
devices:
- /dev/fuse:/dev/fuse:rwm
cap_add:
- SYS_ADMIN
- DAC_OVERRIDE
- NET_ADMIN
security_opt:
- apparmor:unconfined
tmpfs:
- /tmp
- /run
- /run/lock
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
volumes:
casaos_data:
casaos_config:
casaos_share: