Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (60 loc) · 1.51 KB
/
Copy pathdocker-compose.yml
File metadata and controls
75 lines (60 loc) · 1.51 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: '3.8'
services:
flipper-rpi-control:
build:
context: .
dockerfile: Dockerfile
container_name: flipper-rpi-control
hostname: flipper-rpi-control
# Keep container running
stdin_open: true
tty: true
# Port mappings
ports:
- "5000:5000" # Web UI
- "8888:8888" # Default proxy port
- "9999:9999" # Alternative proxy port
# Volume mounts
volumes:
- ./flipper_rpi:/opt/flipper-rpi-control/flipper_rpi
- flipper_logs:/root/.flipper-rpi/logs
- flipper_config:/root/.flipper-rpi
# Environment variables
environment:
- LOG_LEVEL=INFO
- PYTHONUNBUFFERED=1
- FLIPPER_URL=http://flipper-http:8080
# Network
networks:
- flipper-network
# Restart policy
restart: unless-stopped
# Health check
healthcheck:
test: ["CMD", "flipper-rpi", "connect"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Optional: FlipperHTTP service (if available)
flipper-http:
image: flipper-http:latest
container_name: flipper-http
hostname: flipper-http
ports:
- "8080:8080"
networks:
- flipper-network
restart: unless-stopped
# Uncomment to use a local FlipperHTTP binary instead
# build:
# context: ./flipper-http
# dockerfile: Dockerfile
volumes:
flipper_logs:
driver: local
flipper_config:
driver: local
networks:
flipper-network:
driver: bridge