forked from ChuckMash/ESPythoNOW
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (47 loc) · 1.06 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
40
41
42
43
44
45
46
47
48
49
services:
espythonow:
hostname: espythonow
container_name: espythonow
image: ladder99/espythonow:latest
restart: unless-stopped
command: python3 -u main.py
network_mode: host
# privileged: true
cap_add:
- NET_RAW
#- NET_ADMIN
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
- PYTHONUNBUFFERED=1
- LOG_LEVEL=20
- INTERFACE=wlxc01c3038d5a8
stop_grace_period: 10s
stop_signal: SIGTERM
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "20m"
dozzle:
hostname: dozzle
container_name: dozzle
image: amir20/dozzle:latest
restart: unless-stopped
networks:
- espnow
ports:
- "8080:8080/tcp"
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "20m"
networks:
espnow:
name: espnow