#✅ Directus, Postgres + Docker

49 messages · Page 1 of 1 (latest)

wise cipherBOT
#

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.)

empty mortar
hexed cairn
#

I have included it in a new folder, docker-compose.yml
and I am running docker-compose up in Terminal

#

@empty mortar oh, I am getting this error.. any ideas?

elfin heath
hexed cairn
#

it appears to have that, yes

elfin heath
#

then it should be in there, that line should make the directus docker wait until the database has started

hexed cairn
#

🤷🏻‍♂️

#

it's a brand new install of Docker Desktop, not sure why this error would occur

empty mortar
#

As a first port of call I would try restarting Docker Desktop then try again, if you haven't already

hexed cairn
hexed cairn
#

Weird, why would Docker do that?

#

Bug of some sort?

empty mortar
#

No idea, but glad it's working!

hexed cairn
#

should I run the container via Docker Desktop like this? (GUI)

#

or better to use command line

empty mortar
#

Doesn't really matter

hexed cairn
#

I can't remember what URL I need to goto lol

empty mortar
#

'Should' do the same thing

hexed cairn
#

to load Directus

empty mortar
hexed cairn
#

thanks!

#

so this is using Postgres? 😄

#

all in container environment

empty mortar
#

Yep

hexed cairn
#

that is fantastic

#

wow

#

I wish I used Docker sooner

#

saves so much headache

#

and can switch between machines

empty mortar
#

I had the same revelation a few months ago 😂

hexed cairn
#

haha

#

so I am using a Github private repo

#

can I store my docker stuff there?

#

Or better to use docker hub for that

#

I think I am allowed 1 private repo with docker hub

#

like let's say I wanna work on this project from a new computer, or from my Mac Pro and MacBook Air

#

Github private repo is what I normally use.. but not sure when it comes to Docker

empty mortar
#

You would generally just check the docker compose into git, pull it to whatever machine then set it up as you did before. I guess you could also check the data directory into git also to persist your data, but I would only do this if you're just testing things out and not in production.

hexed cairn
#

Well, I am actually hoping to get a full functional website locally, using the same database (postgres) and when the site is ready to go live, take the site live where everything will be the same

#

as it's much faster to work locally

#

and then somehow (if possible) have the local site sync to production (live)

wise cipherBOT
#

✅ Directus, Postgres + Docker