cloudbbq icon indicating copy to clipboard operation
cloudbbq copied to clipboard

Documentation: Docker Support

Open digital-dann opened this issue 4 years ago • 3 comments

After some fiddling, I found a way to build a Docker container for this. Docker my preferred way to run this, even on a Raspberry Pi. Some people might find this useful, too:

Dockerfile

FROM node:10-buster

RUN git clone https://github.com/gleeds/cloudbbq.git \
  && cd cloudbbq \
  && npm install

COPY docker-entrypoint.sh /entrypoint.sh

RUN chmod u+x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]

docker-entrypoint.sh

#!/bin/sh

cd /cloudbbq
exec npm start

docker-compose.yml

version: '3'
services:
  cloudbqq:
    container_name: cloudbbq
    image: cloudbbq:latest
    network_mode: host
    volumes:
      - ./default.json:/cloudbbq/config/default.json
    restart: unless-stopped

digital-dann avatar Jun 23 '21 19:06 digital-dann