version: '2'services: wormhole-server: image: docker.io/krisyotam/wormhole:latest container_name: wormhole restart: always read_only: true # uncomment to set the user # user: "1000:1000" # userns_mode: "keep-id" # uncomment if using rootless podman as well as the x-podman directive at the bottom # environment: #- READONLY=true # uncomment to set wormhole as read only # - UID=1000 # this should match the user set above # - GID=1000 # this should match the user's group cap_drop: - ALL cap_add: - SETGID - SETUID # uncomment to set resource usage limits # deploy: # resources: # limits: # cpus: "2" # memory: 250m # pids: 1024 ports: - 8001:8001 volumes: - ~/to-share:/shared# labels:# - "traefik.enable=true"# - "traefik.port=8001"# - "traefik.backend=wormhole"# - "traefik.frontend.rule=Host:${WORMHOLE}.${DOMAIN}"# x-podman: # uncomment if using rootless podman as well as the userns_mode directive at the top# in_pod: false
version: '2'
services:
wormhole-server:
image: docker.io/krisyotam/wormhole:latest
container_name: wormhole
restart: always
read_only: true
# uncomment to set the user
# user: "1000:1000"
# userns_mode: "keep-id" # uncomment if using rootless podman as well as the x-podman directive at the bottom
# environment:
#- READONLY=true # uncomment to set wormhole as read only
# - UID=1000 # this should match the user set above
# - GID=1000 # this should match the user's group
cap_drop:
- ALL
cap_add:
- SETGID
- SETUID
# uncomment to set resource usage limits
# deploy:
# resources:
# limits:
# cpus: "2"
# memory: 250m
# pids: 1024
ports:
- 8001:8001
volumes:
- ~/to-share:/shared
# labels:
# - "traefik.enable=true"
# - "traefik.port=8001"
# - "traefik.backend=wormhole"
# - "traefik.frontend.rule=Host:${WORMHOLE}.${DOMAIN}"
# x-podman: # uncomment if using rootless podman as well as the userns_mode directive at the top
# in_pod: false