Adding docker support for samba shares.
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Controller Tests / controller-tests (push) Waiting to run
Jest Tests / jest-tests (push) Waiting to run

This commit is contained in:
Roland 2026-03-29 11:00:09 -06:00
parent c445b917a8
commit 1e2e59ec2e
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
7 changed files with 280 additions and 94 deletions

View file

@ -29,8 +29,8 @@ services:
# Host system info (read-only)
- /proc:/host/proc:ro
- /sys:/host/sys:ro
# Config directory
- ${MEDIA_DIRECTORY:-./test}/config:/media/wrolpi/config
# Media directory (needed for Samba share path validation)
- ${MEDIA_DIRECTORY:-./test}:/media/wrolpi
environment:
- DOCKERIZED=true
- MEDIA_DIRECTORY=/media/wrolpi
@ -159,6 +159,19 @@ services:
test: [ 'CMD-SHELL', 'curl http://127.0.0.1:80' ]
interval: 1m
samba: # Samba file sharing - started/stopped by the controller based on configured shares.
build:
context: .
dockerfile: docker/samba/Dockerfile
restart: "no"
depends_on:
controller:
condition: service_healthy
ports:
- "445:445"
volumes:
- ${MEDIA_DIRECTORY:-./test}:/media/wrolpi
help: # The WROLPi Help documentation.
build:
context: .