Sthope eb1212bbee
All checks were successful
continuous-integration/drone/push Build is passing
first commit
2022-05-01 19:06:40 +02:00

44 lines
852 B
Markdown

Replace `{folder_to_share}`, `{USERNAME}`, `{PASSWORD}` with your choice.
eg:
```
volumes:
- /home/user:/share
```
eg:
```
command: '-u "1000:1000:user:user:crap_pass" -s "HomeLAB:/share:rw:user"'
```
Portainer Stack:
```yaml
---
version: "3.8"
services:
samba:
image: elswork/samba:${tag-latest}
container_name: samba
hostname: samba
network_mode: ${NET-bridge}
restart: ${RST-unless-stopped}
environment:
- TZ=${TZ-Europe/Amsterdam}
volumes:
- {folder_to_share}:/share
ports:
- 445:445
labels:
- com.centurylinklabs.watchtower.enable=${AutoUpdate-false}
command: '-u "1000:1000:{USERNAME}:{USERNAME}:{PASSWORD}" -s "HomeLAB:/share:rw:{USERNAME}"'
```
Environments:
```
tag=latest
RST=unless-stopped
NET=bridge
PUID=1000
PGID=1000
TZ=Europe/Lisbon
AutoUpdate=true
```