forked from WebThingsIO/gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (27 loc) · 804 Bytes
/
docker-compose.yml
File metadata and controls
28 lines (27 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
version: "3"
services:
webthings-gateway:
container_name: webthings-gateway
image: webthingsio/gateway:latest
restart: unless-stopped
network_mode: host
# "ports" are ignored because of "network_mode: host". Either use "ports"
# or "network_mode: host".
#ports:
# - "8080:8080"
# - "4443:4443"
environment:
- "TZ=America/Los_Angeles"
volumes:
- /opt/docker/webthings-gateway:/home/node/.webthings
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "10"
# If certain devices are needed, e.g. USB dongles, enable them here.
#devices:
# - /dev/ttyUSB0:/dev/ttyUSB0
# - /dev/ttyACM0:/dev/ttyACM0
# If Bluetooth, the container needs to run in privileged mode.
#privileged: true