version: "3.8" services: portainer_agent: #Portainer is a web UI for managing your docker containers. This container is just the agent which you need to pair with the portainer-ce host container https://www.portainer.io/ image: portainer/agent:2.19.3 container_name: portainer_agent ports: - "9001:9001" volumes: - /var/run/docker.sock:/var/run/docker.sock - /var/lib/docker/volumes:/var/lib/docker/volumes restart: always samba: # samba remote file access https://github.com/deftwork/samba image: elswork/samba:latest container_name: samba environment: - TZ=${TZ} ports: - "139:139" - "445:445" volumes: - ${MEDIA_PATH}:/mnt/Media - ${TEMP_PATH}/transcodecache:/transcodecache command: '-u "${UID}:${GID}:${SMB_USER}:${SMB_USER}:${SMB_PASS}" -s "Media:/mnt/Media:rw:${SMB_USER}" -s "TranscodeCache:/transcodecache:rw:${SMB_USER}"' restart: unless-stopped