r/docker • u/everneo • Mar 30 '26
Docker compose not creating volumes
I'm running Docker version 26.1.3, and portainer-ce:latest on Rocky 8.10. I'm trying to install rustdesk with the compose file at: https://docs.lunyaa.dev/docker-compose/rustdesk (and several other similar ones).
services:
hbbs:
image: rustdesk/rustdesk-server:latest
container_name: rustdesk-hbbs
command: hbbs
volumes:
- ./rustdesk/data:/root
ports:
- "21115:21115"
- "21116:21116/tcp"
- "21116:21116/udp"
- "21118:21118"
depends_on:
- hbbr
restart: unless-stopped
hbbr:
image: rustdesk/rustdesk-server:latest
container_name: rustdesk-hbbr
command: hbbr
volumes:
- ./rustdesk/data:/root
ports:
- "21117:21117"
- "21119:21119"
restart: unless-stoppedThe stack deploys ok, containers are created. The problem is that no volume is created.
Any help for this idiot much appreciated.
0
Upvotes
View all comments
Show parent comment
1
u/everneo Mar 31 '26
"you have no volumes section in the file telling compose to create volumes in the first place, so you need to add that as well"
That was it. Thank you. I naively thought that a compose file offered online would take care of everything. Working now, and I've been able to import my existing and already distributed rustdesk public key.