-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 1.17 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
# 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
volumes:
- ./homeglow/data:/app/data
- ./homeglow/uploads:/app/uploads
environment:
- NODE_ENV=production
- PORT=${BACKEND_PORT:-5000}
- TZ=${TZ:-America/New_York}
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