Category : postgresql

I have been trying to deploy a docker django postgresql application. docker-compose.prod.yml … services: web: build: context: . dockerfile: Dockerfile.prod restart: always container_name: web command: gunicorn django_app.wsgi:application –bind 0.0.0.0:80 volumes: – static_volume:/static – media_volume:/media expose: – 80 env_file: – ./.env.prod depends_on: – db db: image: postgres:13.4-alpine container_name: db volumes: – postgres_data:/var/lib/postgresql/data/ env_file: – ./.env.db … ..

Read more

I created a postgres docker image on top of the official image to copy my own pg_hba.conf into it, because I need to disable listening on IPv6 : FROM postgres:13 COPY pg_hba.conf /etc/ Afterwards I run the container using the following docker-compose.yaml: postgres: image: custom-postgres command: postgres -c hba_file="/etc/pg_hba.conf" But postgres still tries listening on ..

Read more

I’m suffering parallel slowdown when scaling up a Python application using docker-compose up –scale. This application is mainly use for heavy geospatial computations (both on raster and vector data) using GeoPandas / rasterio / GDAL / … and writes data to a PostgreSQL + PosGIS database (also dockerized). For example, a feature which took 1’280 ..

Read more