Skip to content

Instantly share code, notes, and snippets.

@mmguero
Created April 8, 2024 13:27
Show Gist options
  • Save mmguero/b3ff4a05b82528eacd40515886d6b71c to your computer and use it in GitHub Desktop.
Save mmguero/b3ff4a05b82528eacd40515886d6b71c to your computer and use it in GitHub Desktop.
samba-docker-compose.yml using slirp4netns with rootless podman
services:
samba:
image: docker.io/dperson/samba:latest
environment:
TZ: 'America/Denver'
USERID: 0
GROUPID: 0
ports:
- "0.0.0.0:137:137/udp"
- "0.0.0.0:138:138/udp"
- "0.0.0.0:139:139/tcp"
- "0.0.0.0:445:445/tcp"
network_mode: "slirp4netns:port_handler=slirp4netns"
read_only: true
tmpfs:
- /tmp
volumes:
- /home/user/Public:/public:z
command: '-s "Public;/public;yes;no;yes;username" -u "guest;password" -p -r'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment