#✅ Free Hosting: Docker w/ Postgres

60 messages · Page 1 of 1 (latest)

shadow anchorBOT
#

Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please help us help you making sure you:

  • Adding an explanation of exactly what you're trying to achieve.
  • Adding any and all related code or previous attempts.
  • Describing the exact issue or error you are facing.
  • Posting any screenshots if applicable.
  • Reading through https://stackoverflow.com/help/how-to-ask.

When you're done with this thread, please close it. Thanks! ✨

(If you have a support agreement and need help, please contact the core team via email.)

spice abyss
#

❤️ the Student Dev Pack. It is the single best offering of stuff for students imo. Used to work on the GH Edu team so big love from this side!

The pack itself isn't what will let you host stuff - it's the services that provide promotions through the pack. You can absolutely deploy Directus on Digital Ocean (or Azure, Heroku) using Docker.

Other than the fact you need to deploy and maintain and instance, there's no limitations 🙂

ocean cypress
#

As of right now I have approximately 800MB of upload (images), using Postgres for the db, with latest version of Directus

spice abyss
#

GitHub doesn't host your running applications

ocean cypress
#

Ah OK

spice abyss
#

You need to host it on a hosting platform, but the student pack gives you access to several for free

ocean cypress
#

GitHub Pro provides access to Free Hosting Providers you mean?

spice abyss
#

No - the student pack 😅

ocean cypress
#

Oh

spice abyss
#

Here's some

#

DO, Azure, Heroku

ocean cypress
#

Ah OK nice

#

Which would you recommend for easiest Docker deployment?

#

and longest free tier lol

spice abyss
#

I use DO personally, but all are good. Why not read their docker guides first and make a call what's best for you

ocean cypress
#

it appears the hosts are all limited to 1 year, just checking to confirm with Microsoft Azure

spice abyss
#

It's been a while since I used it - you should reach out the the team over there to discuss claiming student promotions from the pack. IIRC it was a promo code, but it could change

ocean cypress
#

Ah OK thanks

#

I also understand Vercel recently added support for postgres now too

#

Or something along those lines

spice abyss
#

Yeah they announced a few storage solutions during their ship week

ocean cypress
#

Yeah

#

I'm curious about Supabase too, lots to explore.. just wanna keep it cheap if possible haha..

#

Supabase looks nice but it's a pretty big jump in price from 1GB file storage to 100GB

#

maybe something like AWS would be better to keep costs lower on the usage only

#

they have 1 year free trial, I'm sure there is a Docker deploy option somewhere in their millions of services too

#

I think I will go with Firebase Free Tier 😛 To start with.. Then decide where to go from there hopefully switching hosts is not too painful for Docker deployments

spice abyss
#

Enjoy! Let us know if you have any other questions about directus

ocean cypress
#

ty!

ocean cypress
fathom palm
fathom palm
ocean cypress
fathom palm
#

anywhere! thats why docker is so awesome 🙂 one image to rule them all

#

its the DB thats important and your data store for files

#

otherwise its host agnostic 🙂

ocean cypress
#

OK Nice.. I am building the site locally, adding images and creating collection types with relationships
So if I just upload the docker-compose.yml file to Github, that only gives the container environments
But how would I also upload my changes (file uploads, collection types) to Github? I'm on Github Pro now with Student Pack, if that helps

ocean cypress
#

along with docker-compose.yml

#

Just trying to understand the best dev/production setup when it comes to Docker

#

The way I work:
I'm adding everything locally, as it's faster than working online

fathom palm
#

/uploads
/database (only if using sqllite, so not needed here)
/extensions (for any installed extensions)

#

thats the persistant folders

ocean cypress
#

I'm using Postgres

fathom palm
#

than not needed for /database as far as Im aware

ocean cypress
#

but how would I get my data to sync? From local environment to production

#

or is that a very bad practice

#

and for the database media uploads to correlate to the /uploads folder, wouldn't that require the same postgres database?

fathom palm
#

quick meeting for me. but yes. same database would be the same. or a migration would be needed

ocean cypress
#

If I do this, everything (including the data) should be guaranteed to work on a new Docker Compose?

zinc jetty
#

Hi, I currently migrating a project too. With that file structure you should have everything good (can you show your docker compose file? Some time you have to make some changes in the config to make it work on the server)

ocean cypress
#

Copied the .yml file to a new project folder and in Terminal I typed docker-compose up

#

Before all of this, I also have Docker Desktop installed

#

apparently it's quite easy to get it hosted, many hosts handle Docker quite nicely, but I will see how it goes

shadow anchorBOT
#

✅ Free Hosting: Docker w/ Postgres