Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 822 Bytes

docker-compose.md

File metadata and controls

30 lines (26 loc) · 822 Bytes

Using Docker Compose

Passing full configuration object:

version: '2'
services:
  frontend:
    image: ghcr.io/rustygreen/raspberry-pi-client:main
    ports:
      - '80:80'
    environment:
      # The configuration file will be overwritten with this JSON value:
      - 'RPC_CONFIG={"servers": [{"title": "Basement Pi","url": "https://pi-basement.rusty.green","pinLabels": {"11": "Cows water","17": "Cows water drain","13": "Chickens water","31": "Chickens water drain"}}]}'

Passing server only:

version: '2'
services:
  frontend:
    image: ghcr.io/rustygreen/raspberry-pi-client:main
    ports:
      - '80:80'
    environment:
      # The configuration will consist of one server with URL/title:
      - 'RPC_SERVER=https://pi-basement.rusty.green'
      - 'RPC_SERVER_TITLE=Basement Pi'