mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 03:16:22 -05:00
Adding docker support for samba shares.
This commit is contained in:
parent
c445b917a8
commit
1e2e59ec2e
7 changed files with 280 additions and 94 deletions
|
|
@ -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: .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue