Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elbeenmachine/samba-server
A public samba server hosted in docker
https://github.com/elbeenmachine/samba-server
docker smb
Last synced: about 2 months ago
JSON representation
A public samba server hosted in docker
- Host: GitHub
- URL: https://github.com/elbeenmachine/samba-server
- Owner: ElBeenMachine
- License: agpl-3.0
- Created: 2024-09-08T17:55:46.000Z (4 months ago)
- Default Branch: production
- Last Pushed: 2024-09-11T18:15:58.000Z (4 months ago)
- Last Synced: 2024-09-12T04:31:08.545Z (4 months ago)
- Topics: docker, smb
- Language: Shell
- Homepage: https://hub.docker.com/repository/docker/beenhamo/samba-server/general
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SAMBA Server
This is a simple dockerised samba server, it is a quick and easy way to spin up a protected SMB share whether it be for testing purposes, or to use for a project.
## Implementation
### Docker
To deploy the SMB server using Docker, you can use the following command:
```
docker run -d \
--name samba-server \
--network host \
--volume ./data:/srv/samba/share \
--env SAMBA_USER=smbuser \
--env SAMBA_PASSWORD=password \
--env SAMBA_SHARE=share \
beenhamo/samba-server:latest
```### Docker Compose
You can achieve the same result from the following docker compose file:
```yaml
services:
smb:
image: beenhamo/samba-server:latest
container_name: samba-server
network_mode: host
volumes:
- ./data:/srv/samba/share
environment:
- SAMBA_USER=smbuser
- SAMBA_PASSWORD=password
- SAMBA_SHARE=share
restart: unless-stopped```
The above file can be found at [examples/docker-compose.yml](examples/docker-compose.yml).
## Usage
Regardless of how you spin up the container, it should become available fairly quickly, and you can access it from the host's ip address.