0

I need to map the MinIO save path to the host, with the following syntax (docker-compose.yam) on my linux machine it works while on the Azure app service it doesn't (all other settings in the next example work only volume settings not) why?

version: '3.7'

services:
 app-minio:
  image: mysite.azurecr.io/minio:latest
  command: server /data
  ports:
   - "80:9000"
  volumes:
   - data1:/data

volumes:
  data1:
    driver: local
    driver_opts:
      type: none
      device: /home/minio-data
      o: bind
Angelo
  • 101
  • 1
  • 9

1 Answers1

0

It seems you can control the mount path when you use the local volumes in Azure Web App. You only can set the volumes like this:

  ...
  volumes:
  - data1:/data
  ...
volumes:
  data1:

And when you use the local volumes, it doesn't persist the data for you.

Charles Xu
  • 29,862
  • 2
  • 22
  • 39