github.com/e154/smart-home@v0.17.2-0.20240311175135-e530a6e5cd45/conf/docker-compose/database/docker-compose.yml (about)

     1  version: '3.3'
     2  
     3  services:
     4    postgres:
     5      image: postgis/postgis:11-3.3
     6      restart: always
     7      volumes:
     8        - db-data:/var/lib/postgresql
     9        - ./db/scripts:/docker-entrypoint-initdb.d
    10      ports:
    11        - "5432:5432"
    12      environment:
    13        POSTGRES_PASSWORD: smart_home
    14        POSTGRES_USER: smart_home
    15        POSTGRES_DB: smart-home
    16      healthcheck:
    17        test: [ "CMD-SHELL", "pg_isready -d smart_home -U smart_home" ]
    18        interval: 10s
    19        timeout: 10s
    20  
    21  volumes:
    22    db-data: