-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dockerhub.yml
70 lines (66 loc) · 1.96 KB
/
docker-compose.dockerhub.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3.8'
services:
server:
image: blinkzero/powerpulse-server:1.8.3
container_name: powerpulse-server
restart: unless-stopped
command: ["node", "server.js"]
ports:
- "5001:5000"
volumes:
- ./server/data:/app/data
environment:
- NODE_ENV=production
- PORT=5000
- TZ=${TZ:-UTC}
- JWT_SECRET=${JWT_SECRET:-change_this_to_a_secure_random_string}
- DEFAULT_NUT_HOST=${DEFAULT_NUT_HOST:-host.docker.internal}
- DEFAULT_NUT_PORT=${DEFAULT_NUT_PORT:-3493}
- DEFAULT_NUT_USERNAME=${DEFAULT_NUT_USERNAME:-}
- DEFAULT_NUT_PASSWORD=${DEFAULT_NUT_PASSWORD:-}
- NUT_CONNECTION_TIMEOUT=${NUT_CONNECTION_TIMEOUT:-5000}
- NUT_RETRY_ATTEMPTS=${NUT_RETRY_ATTEMPTS:-3}
- NUT_RETRY_DELAY=${NUT_RETRY_DELAY:-1000}
- LOG_LEVEL=${LOG_LEVEL:-info}
# Email configuration
- SMTP_HOST=${SMTP_HOST:-}
- SMTP_PORT=${SMTP_PORT:-}
- SMTP_USER=${SMTP_USER:-}
- SMTP_PASS=${SMTP_PASS:-}
- SMTP_FROM=${SMTP_FROM:[email protected]}
healthcheck:
test: ["CMD", "sh", "-c", "wget --no-verbose --tries=1 --spider http://localhost:5000/api/auth/check-setup || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
networks:
- powerpulse-network
client:
image: blinkzero/powerpulse-client:1.8.3
container_name: powerpulse-client
restart: unless-stopped
ports:
- "80:80"
depends_on:
server:
condition: service_healthy
environment:
- SERVER_HOST=server
- SERVER_PORT=5000
- TZ=${TZ:-UTC}
- ENABLE_HTTPS=${ENABLE_HTTPS:-false}
healthcheck:
test: ["CMD", "sh", "-c", "wget --no-verbose --tries=1 --spider http://localhost/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
networks:
- powerpulse-network
networks:
powerpulse-network:
driver: bridge
volumes:
data:
driver: local