Files
zeekay 1509031e81 unify all sql images to :latest (PG18)
Single version policy: ghcr.io/hanzoai/sql:latest everywhere.
No version pinning, no backwards compat, always latest stable.
2026-03-01 21:09:04 -08:00

37 lines
966 B
YAML

version: '3.9'
services:
db-init:
image: ghcr.io/hanzoai/sql:latest
volumes:
- ./blockscout-db-data:/var/lib/postgresql/data
entrypoint:
- sh
- -c
- |
chown -R 2000:2000 /var/lib/postgresql/data
db:
image: ghcr.io/hanzoai/sql:latest
user: 2000:2000
shm_size: 256m
restart: always
container_name: 'explorer-luxnet-db'
command: postgres -c 'max_connections=200' -c 'client_connection_check_interval=60000'
environment:
POSTGRES_DB: 'blockscout'
POSTGRES_USER: 'blockscout'
POSTGRES_PASSWORD: 'ceWb1MeLBEeOIfk65gU8EjF8'
ports:
- target: 5432
published: 7432
volumes:
- ./blockscout-db-data:/var/lib/postgresql/data
- ./init-db.sh:/docker-entrypoint-initdb.d/init-db.sh
healthcheck:
test: ["CMD-SHELL", "pg_isready -U blockscout -d blockscout"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s