-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
39 lines (38 loc) · 1.11 KB
/
docker-compose.yml
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
29
30
31
32
33
34
35
36
37
38
39
version: "3.9"
services:
rosys:
image: "zauberzeug/field-friend:latest"
build:
context: .
volumes:
- ./:/app
# - ./../lizard:/home/zauberzeug/.lizard
- ~/.rosys:/home/zauberzeug/.rosys
- ~/data:/data
- /run/udev:/run/udev:ro # to get the device identifiers
- /etc/hostname:/mnt/host_hostname:ro #to get the hostname into the docker
environment:
- TZ=Europe/Amsterdam
hostname: docker
cap_add:
- SYS_NICE # allow container to set process priorities
- SYS_PTRACE # allow profiling with py-spy
- NET_BIND_SERVICE # allow container to bind to privileged ports
logging:
driver: "json-file"
options:
max-size: "200m"
max-file: "100"
init: true
# healthcheck:
# test: curl --fail http://localhost/status || exit 1
# interval: 20s
# retries: 3
# start_period: 1h
# timeout: 10s
autoheal: # restart containers which turn unhealthy
image: willfarrell/autoheal
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
- AUTOHEAL_CONTAINER_LABEL=all