Skip to content

Instantly share code, notes, and snippets.

@peerapach
Created May 21, 2024 12:37
Show Gist options
  • Save peerapach/d90300ffd82e8955cf8e318f541fb3e4 to your computer and use it in GitHub Desktop.
Save peerapach/d90300ffd82e8955cf8e318f541fb3e4 to your computer and use it in GitHub Desktop.
docker compose with nfs mount
version: "3.2"
services:
db:
image: mariadb
user: root
environment:
MARIADB_ROOT_PASSWORD: mypass
ports:
- 3306:3306
volumes:
- data-1:/var/lib/mysql
volumes:
data-1:
driver_opts:
type: "nfs"
o: "addr=10.0.2.15,nfsvers=4"
device: ":/pool1/test1-1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment