-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (36 loc) · 968 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (36 loc) · 968 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
29
30
31
32
33
34
35
36
37
services:
treadmill-controller:
build: .
container_name: treadmill-controller
ports:
- "3001:3001"
# Load Strava credentials and other env vars from .env file
# Create .env from .env.example: cp .env.example .env
env_file:
- path: .env
required: false
volumes:
# Persist database outside container
- ./data:/app/data
# SSL certificates for HTTPS (optional)
- ./certs:/app/certs:ro
environment:
- NODE_ENV=production
- DATABASE_PATH=/app/data/treadmill.db
# Change to "no" if you want manual control (save power)
# Use "unless-stopped" for 24/7 operation
restart: unless-stopped
networks:
- treadmill-network
# Resource limits for Raspberry Pi
deploy:
resources:
limits:
cpus: '1.0'
memory: 512M
reservations:
cpus: '0.25'
memory: 128M
networks:
treadmill-network:
driver: bridge