Closed jaaneh closed 10 months ago
Your Render PR Server URL is https://noroff-agency-api-pr-119.onrender.com.
Follow its progress at https://dashboard.render.com/web/srv-cmih68021fec73f29ljg.
Once this is in, I'll also move the deployment over from using node directly to building from the Dockerfile
file. It may result in a couple minutes downtime while it's being moved over
This PR introduces Docker and docker-compose to the Agency API, streamlining the development and deployment processes.
Here's what you need to do to get going:
POSTGRES_USER
,POSTGRES_PASSWORD
, andPOSTGRES_DB
to your .env file. Make sureDATABASE_URL
matches the Postgres service name in docker-compose.db:5432
for the DATABASE_URL, which is correct with the current setup.docker-compose up -d
. This gets both the API and Postgres running in Docker.To stop the docker containers when you're done, just run
docker-compose down
Feel free to reach out, or open a issue/PR and tag me, if you encounter any issues or have suggestions for improvements to the setup :-)