On 2024-06-21 23:08, Yogesh Sharma wrote: <snip> > docker-compose.yml - to create proper dependency between python and > postgres container
This one's using PG 16:
image: postgres:16
Does anyone know if the PG infrastructure uses PG 16 too?
Asking because it'd make sense for them to match, just in case. :)
It also is on python 3.7 which should be 3.9 to match what's deployed. In general, I'd recommend starting off the debian bullseye container instead of the python specific one -- that's what's used in the production deployments, so it makes sense to keep to the same. That way it could also be using the same versions of the debian packages for all requirements (basically everything except Django itself), to ensure it's exactly the same.