docker-compose.yml
22 lignes · 940 octets
services: db: image: postgres:18-trixie shm_size: 1g volumes: - ./data/postgres_data:/var/lib/postgresql/18/docker environment: # If you need to create multiple database you can add coma separated databases eg gis,data - POSTGRES_DB=${POSTGRES_DB:-database} - POSTGRES_USER=${POSTGRES_USER:-user} # Required: copy env.sample to .env and set a unique password. No default. - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in database/.env} # ALLOW_IP_RANGE n'est pas consommé par ce compose (pas de pg_hba custom). # Conservé en commentaire pour ne pas prétendre restreindre 0.0.0.0/0 : # - ALLOW_IP_RANGE=${ALLOW_IP_RANGE:-127.0.0.1/32} # Add extensions you need to be enabled by default in the DB. Default are the five specified below ports: - "127.0.0.1:5432:5432" restart: unless-stopped healthcheck: test: "exit 0"
GitRust