Docker-compose: increase max connections and db pool size

Add CL entry
pull/6877/head
Viktor Baranov 2 years ago
parent 4e2dcb0d20
commit 1f1bdc013e
  1. 1
      CHANGELOG.md
  2. 22
      docker-compose/docker-compose.yml
  3. 2
      docker-compose/envs/common-blockscout.env
  4. 1
      docker-compose/services/docker-compose-db.yml

@ -34,6 +34,7 @@
### Chore
- [#6877](https://github.com/blockscout/blockscout/pull/6877) - Docker-compose: increase default max connections and db pool size
- [#6853](https://github.com/blockscout/blockscout/pull/6853) - Fix 503 page
- [#6845](https://github.com/blockscout/blockscout/pull/6845) - Extract Docker-compose services into separate files
- [#6839](https://github.com/blockscout/blockscout/pull/6839) - Add cache to transaction actions parser

@ -2,24 +2,14 @@ version: '3.8'
services:
redis_db:
image: 'redis:alpine'
ports:
- 6379:6379
container_name: redis_db
command: redis-server
volumes:
- ./redis-data:/data
extends:
file: ./services/docker-compose-redis.yml
service: redis_db
db:
image: postgres:14
restart: always
container_name: 'postgres'
environment:
POSTGRES_PASSWORD: ''
POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust'
ports:
- 7432:5432
extends:
file: ./services/docker-compose-db.yml
service: db
blockscout:
platform: linux/x86_64

@ -34,7 +34,7 @@ EXCHANGE_RATES_COIN=
# EXCHANGE_RATES_COINGECKO_COIN_ID=
# EXCHANGE_RATES_COINGECKO_API_KEY=
# EXCHANGE_RATES_COINMARKETCAP_API_KEY=
POOL_SIZE=40
POOL_SIZE=90
POOL_SIZE_API=10
ECTO_USE_SSL=false
# DATADOG_HOST=

@ -5,6 +5,7 @@ services:
image: postgres:14
restart: always
container_name: 'postgres'
command: postgres -c 'max_connections=200'
environment:
POSTGRES_PASSWORD: ''
POSTGRES_USER: 'postgres'

Loading…
Cancel
Save