How to properly edit "volumes" in app.yaml?


(Dylan Hunt) #1

I have a new /mnt/ volume from digital ocean. I just rsync’d my /var/discourse to /mnt/sf02-storage/var/discourse. Seems that the only thing left is to change volumes.

The question is: is “guest” a local path? Should I keep it /shared and /var/log? Or should I do /mnt/sf02-storage/shared and /mnt/sf02-storage/var/log?

volumes:
  - volume:
      host: /var/discourse/shared/standalone
      guest: /shared
  - volume:
      host: /var/discourse/shared/standalone/log/var-log
      guest: /var/log

>>

volumes:
  - volume:
      host: /mnt/sf02-storage/var/discourse/shared/standalone
      guest: /shared
  - volume:
      host: /mnt/sf02-storage/var/discourse/shared/standalone/log/var-log
      guest: /var/log

(Sam Saffron) #2

Guest = path inside container
Host = path outside container


(Dylan Hunt) #3

ah, so I should probably leave the guest alone. Thanks for the clarification