-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.46 KB
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.46 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
# HomeGlow Production Deployment
# Configured for Portainer environment variable injection
#
# Set these environment variables in the .env file:
# # Set the appropriate timezone for your location (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g: America/New_York
# TZ=America/New_York
# FRONTEND_PORT=3000
services:
homeglow-backend:
container_name: homeglow-backend
image: ghcr.io/jherforth/homeglow-backend:latest
# Ensures SIGTERM reaches Node
init: true
volumes:
- ./homeglow/data:/app/data
- ./homeglow/uploads:/app/uploads
environment:
- NODE_ENV=production
- PORT=${BACKEND_PORT:-5000}
- TZ=${TZ:-America/New_York}
# Public demo instance: in-memory DB, no PIN, sample data, uploads/proxy
# disabled (plugins remain installable — they reset with the demo cycle).
# Leave unset (false) for normal installs.
- DEMO_MODE=${DEMO_MODE:-false}
networks:
- homeglow-network
restart: unless-stopped
homeglow-frontend:
container_name: homeglow-frontend
image: ghcr.io/jherforth/homeglow-frontend:latest
ports:
- "${FRONTEND_PORT:-3000}:${FRONTEND_PORT:-3000}"
environment:
- FRONTEND_PORT=${FRONTEND_PORT:-3000}
- BACKEND_SERVICE=homeglow-backend
- BACKEND_PORT=${BACKEND_PORT:-5000}
depends_on:
- homeglow-backend
networks:
- homeglow-network
restart: unless-stopped
networks:
homeglow-network:
driver: bridge