Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Named Local Volume
version: '2'
volumes:
data:
driver: local
services:
worker1:
image: worker1
stdin_open: true
volumes:
- data:/db/files
worker2:
image: worker2
stdin_open: true
volumes:
- data:/db/files
worker3:
image: worker3
stdin_open: true
volumes:
- data:/db/files
web:
image: web
stdin_open: true
volumes:
- data:/db/files
ports:
- 23000:3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.