Question about the docker-compose setup in the blues-stack #2976
-
I'm new to docker and web dev in general so expect a newbie question. Here might not be the best place to ask it, because it's more about docker than remix but the community looks nice and I don't know a better place to ask it. This is the version: "3.7"
services:
postgres:
image: postgres:latest
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
ports:
- "5432:5432"
volumes:
- ./postgres-data:/var/lib/postgresql/data If |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I believe it's so you don't have to install and configure postgres locally. So the db is run in docker for development only. The web is still run manually from the command line: I don't believe fly uses the postgres docker image when deployed to production. It uses its own postgres server that you configure as part of your fly app. It creates its own docker image for the web app and runs |
Beta Was this translation helpful? Give feedback.
I believe it's so you don't have to install and configure postgres locally. So the db is run in docker for development only. The web is still run manually from the command line:
npm run dev
I don't believe fly uses the postgres docker image when deployed to production. It uses its own postgres server that you configure as part of your fly app. It creates its own docker image for the web app and runs
npm run start