services: labdeck: build: . container_name: labdeck restart: unless-stopped ports: - "8787:8787" # put a TLS reverse proxy in front (Caddy, Traefik, Pangolin ...), change port to your liking volumes: - labdeck-data:/data # named volume: Docker sets the right owner automatically # Bind mount instead? Create the folder first and give it to the container user: # mkdir -p data && sudo chown 10001:10001 data # - ./data:/data volumes: labdeck-data: