Greatly improve prefetching and reduce # of db calls for each trade_offer
This commit is contained in:
parent
b89025a7e0
commit
95d794d8b9
5 changed files with 89 additions and 67 deletions
|
|
@ -7,29 +7,32 @@ services:
|
|||
restart: always
|
||||
volumes:
|
||||
- ./seed:/seed:ro
|
||||
# DANGEROUS DUE TO DOCKERFILE PACKAGE BUILDING/INSTALLATION
|
||||
#- ./src/pkmntrade_club:/app/lib/python3.12/site-packages/pkmntrade_club:ro
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- DEBUG=true
|
||||
- PUBLIC_HOST=localhost
|
||||
- ALLOWED_HOSTS=127.0.0.1,localhost
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
db:
|
||||
image: postgres:16
|
||||
restart: always
|
||||
ports:
|
||||
- 5432:5432
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data/
|
||||
environment:
|
||||
- "POSTGRES_HOST_AUTH_METHOD=trust"
|
||||
healthcheck:
|
||||
test: ["CMD", "pg_isready", "-U", "postgres", "-d", "postgres"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
- DISABLE_CACHE=false
|
||||
# depends_on:
|
||||
# db:
|
||||
# condition: service_healthy
|
||||
# db:
|
||||
# image: postgres:16
|
||||
# restart: always
|
||||
# ports:
|
||||
# - 5432:5432
|
||||
# volumes:
|
||||
# - postgres_data:/var/lib/postgresql/data/
|
||||
# environment:
|
||||
# - "POSTGRES_HOST_AUTH_METHOD=trust"
|
||||
# healthcheck:
|
||||
# test: ["CMD", "pg_isready", "-U", "postgres", "-d", "postgres"]
|
||||
# interval: 10s
|
||||
# timeout: 5s
|
||||
# retries: 5
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
# volumes:
|
||||
# postgres_data:
|
||||
Loading…
Add table
Add a link
Reference in a new issue