Skip to content

Instantly share code, notes, and snippets.

@kalw
Created April 5, 2018 00:38
Show Gist options
  • Select an option

  • Save kalw/73f4cd7f0dc1d3cce0c093c41f91b581 to your computer and use it in GitHub Desktop.

Select an option

Save kalw/73f4cd7f0dc1d3cce0c093c41f91b581 to your computer and use it in GitHub Desktop.
version: "3.2"
services:
nfs-server:
image: itsthenetwork/nfs-server-alpine
ports:
- "2049:2049"
environment:
- SHARED_DIRECTORY=/code
volumes:
- .:/code
web:
image: trinitronx/python-simplehttpserver
volumes:
- type: volume
source: nfsvolume
target: /var/www
volume:
nocopy: true
ports:
- "8000:8000"
depends_on:
- nfs-server
volumes:
nfsvolume:
driver_opts:
type: nfs
o: "addr=nfs-server,rw"
device: ":/code"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment