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

     1  version: '3.3'
     2  
     3  services:
     4    smart-home-gate-data:
     5      image: e154/smart-home-gate:latest
     6      entrypoint:
     7        - /bin/true
     8      volumes:
     9        - /opt/smart-home-gate/conf
    10      links:
    11        - postgres:postgres
    12    smart-home-gate:
    13      image: e154/smart-home-gate:latest
    14      environment:
    15        PG_USER: smart_home
    16        PG_PASS: smart_home
    17      stdin_open: true
    18      volumes:
    19        - smart-home-gate-data:/opt/smart-home-gate/conf
    20      tty: true
    21      links:
    22        - postgres:postgres
    23    smart-home-server:
    24      image: e154/smart-home-server:latest
    25      environment:
    26        PG_USER: smart_home
    27        PG_PASS: smart_home
    28      stdin_open: true
    29      volumes:
    30        - smart-home-server-data:/opt/smart-home-server/conf
    31        - smart-home-server-data:/opt/smart-home-server/data
    32        - smart-home-server-data:/opt/smart-home-server/snapshots
    33      tty: true
    34      links:
    35        - postgres:postgres
    36    smart-home-node:
    37      image: e154/smart-home-node:latest
    38      environment:
    39        MQTT_IP: smart-home-server
    40        NAME: node2
    41        TOPIC: node2
    42        MQTT_USERNAME: node2
    43        MQTT_PASSWORD: node2
    44    smart-home-server-data:
    45      image: e154/smart-home-server:latest
    46      entrypoint:
    47        - /bin/true
    48      volumes:
    49        - /opt/smart-home-server/conf
    50        - /opt/smart-home-server/data
    51        - /opt/smart-home-server/snapshots
    52      links:
    53        - postgres:postgres
    54    smart-home-configurator:
    55      image: e154/smart-home-configurator:latest
    56      environment:
    57        API_ADDR: smart-home-server
    58      links:
    59        - smart-home-server:smart-home-server
    60    postgres:
    61      image: postgres:11
    62      restart: always
    63      volumes:
    64        - db-data:/var/lib/postgresql
    65        - ./db/scripts:/docker-entrypoint-initdb.d
    66      environment:
    67        POSTGRES_PASSWORD: smart_home
    68        POSTGRES_USER: smart_home
    69        POSTGRES_DB: smart_home
    70      healthcheck:
    71        test: [ "CMD-SHELL", "pg_isready -d smart_home -U smart_home" ]
    72        interval: 10s
    73        timeout: 10s
    74  
    75  volumes:
    76    db-data: