DEV Community

Pacharapol Withayasakpunt
Pacharapol Withayasakpunt

Posted on

Need help deploy Docker that needs storage on GCP

For example,

I need a persistent storage, but I cannot use external MongoDB, MySQL or PostGRES.

Or, I can just use DigitalOcean, and SSH tunnel in to do everything, but not sure about security.

Top comments (5)

Collapse
 
v6 profile image
πŸ¦„N BπŸ›‘

Depending on what you need the storage for, you might just consider using a GCP bucket?

When you say "storage," do you mean a database?

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

Yes, database. Does it support something like docker -v?

Collapse
 
v6 profile image
πŸ¦„N BπŸ›‘

So let me get this straight, you're going to have a stateful Docker container? For a database, no less?

When you say "deploy," does this imply that this stateful Docker container will be running somewhere more valuable than local throwaway test environments?

Thread Thread
 
patarapolw profile image
Pacharapol Withayasakpunt

I just want to reuse the package I have posted, which is not twelve-factored. No testing, just use it. Although I might have to debug sometimes.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

So, it is called "stateful Docker container".

I can google now. -- cloud.google.com/kubernetes-engine...