https://github.com/bfren/docker-samba
Docker Samba image.
https://github.com/bfren/docker-samba
docker samba samba-server samba-share smb
Last synced: 4 months ago
JSON representation
Docker Samba image.
- Host: GitHub
- URL: https://github.com/bfren/docker-samba
- Owner: bfren
- License: mit
- Created: 2022-10-21T08:37:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-13T08:29:25.000Z (10 months ago)
- Last Synced: 2024-10-12T02:51:50.298Z (9 months ago)
- Topics: docker, samba, samba-server, samba-share, smb
- Language: Nushell
- Homepage:
- Size: 72.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Docker Samba
   
[Docker Repository](https://hub.docker.com/r/bfren/samba) - [bfren ecosystem](https://github.com/bfren/docker)
Comes with Samba pre-installed, and creates config based on a json file (see shares-conf-sample.json).
## Contents
* [Ports](#ports)
* [Volumes](#volumes)
* [Sample Files](#sample-files)
* [Licence / Copyright](#licence)## Ports
* 445
## Volumes
| Volume | Purpose |
| -------- | -------------------------------- |
| `/files` | Contains the files to be shared. |## Sample Files
`docker-compose.yml`
```yaml
version: "3.8"services:
samba:
image: bfren/samba:latest
container_name: samba
restart: unless-stopped
ports:
- "0.0.0.0:445:445"
volumes:
- ./v/shares.json:/files/shares.json:ro
- ./v/example:/files/example
- ./v/another:/files/another
networks:
- sambanetworks:
samba:
driver: bridge
name: samba
````shares.json`
```json
{
"$schema": "https://schemas.bfren.dev/docker/samba/shares.json",
"users": [
{
"name": "fred",
"pass": "password"
},
{
"name": "jones",
"pass": "another"
}
],
"shares": [
{
"name": "example",
"comment": "Optional description of share",
"users": [
"fred"
],
"browseable": false,
"writeable": false
},
{
"name": "another",
"users": [
"fred",
"jones"
]
}
]
}
```## Licence
> [MIT](https://mit.bfren.dev/2022)
## Copyright
> Copyright (c) 2022-2025 [bfren](https://bfren.dev) (unless otherwise stated)