2024-05-24 23:15:37 +02:00
|
|
|
services:
|
|
|
|
platypush:
|
2024-10-03 20:35:01 +02:00
|
|
|
# Replace the build section with the next line if instead of building the
|
|
|
|
# image from a local checkout you want to pull the latest base
|
|
|
|
# (Alpine-based) image from the remote registry
|
2024-11-10 21:29:19 +01:00
|
|
|
# image: "quay.io/platypush/platypush:latest"
|
2024-10-03 20:35:01 +02:00
|
|
|
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
# Alpine base image
|
|
|
|
dockerfile: ./platypush/install/docker/alpine.Dockerfile
|
|
|
|
# Debian base image
|
|
|
|
# dockerfile: ./platypush/install/docker/debian.Dockerfile
|
|
|
|
# Ubuntu base image
|
|
|
|
# dockerfile: ./platypush/install/docker/ubuntu.Dockerfile
|
|
|
|
# Fedora base image
|
|
|
|
# dockerfile: ./platypush/install/docker/fedora.Dockerfile
|
|
|
|
|
2024-05-24 23:15:37 +02:00
|
|
|
restart: "always"
|
|
|
|
command:
|
|
|
|
- platypush
|
2024-10-03 20:35:01 +02:00
|
|
|
- --redis-host
|
|
|
|
- redis
|
|
|
|
# Or, if you want to run Redis from the same container as Platypush,
|
|
|
|
# replace --redis-host redis with the line below
|
|
|
|
# - --start-redis
|
2024-05-24 23:15:37 +02:00
|
|
|
|
|
|
|
# Custom list of host devices that should be accessible to the container -
|
|
|
|
# e.g. an Arduino, an ESP-compatible microcontroller, a joystick etc.
|
|
|
|
# devices:
|
|
|
|
# - /dev/ttyUSB0
|
|
|
|
|
|
|
|
# Uncomment if you need plugins that require access to low-level hardware
|
|
|
|
# (e.g. Bluetooth BLE or GPIO/SPI/I2C) if access to individual devices is
|
|
|
|
# not enough or isn't practical
|
|
|
|
# privileged: true
|
2024-11-10 21:29:19 +01:00
|
|
|
|
2024-05-24 23:15:37 +02:00
|
|
|
# Copy .env.example to .env and modify as needed
|
|
|
|
# env_file:
|
|
|
|
# - .env
|
|
|
|
|
|
|
|
ports:
|
|
|
|
# Comment if you don't have the HTTP backend enable or you don't want to
|
|
|
|
# expose it
|
|
|
|
- "8008:8008"
|
|
|
|
|
2024-10-03 20:35:01 +02:00
|
|
|
# volumes:
|
|
|
|
# Replace with a path that contains/will contain your config.yaml file
|
|
|
|
# - /path/to/your/config:/etc/platypush
|
|
|
|
# Replace with a path that contains/will contain your working directory
|
|
|
|
# - /path/to/a/workdir:/var/lib/platypush
|
|
|
|
# Optionally, use an external volume for the cache
|
2024-05-24 23:15:37 +02:00
|
|
|
# - /path/to/a/cachedir:/var/cache/platypush
|
2024-11-10 21:29:19 +01:00
|
|
|
# This may be required, together with privileged mode, if you want the
|
|
|
|
# container to access the USB bus on the host (required for example if
|
|
|
|
# you have USB audio devices that you want to access from your plugins,
|
|
|
|
# or Bluetooth dongles, or other USB adapters).
|
|
|
|
# - /dev/bus/usb:/dev/bus/usb
|
2024-10-03 20:35:01 +02:00
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis
|