-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
59 lines (56 loc) · 1.56 KB
/
docker-compose-dev.yml
File metadata and controls
59 lines (56 loc) · 1.56 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
# HomeGlow Development Environment
# Uses separate ports from production for parallel testing
#
# Quick Start:
# Set these environment variables in .env file:
# DEV_FRONTEND_PORT=3001
# TZ=America/New_York
#
# Deploy via Portainer or run: docker-compose -f docker-compose-dev.yml up -d
#
# Rebuild required for code changes: docker-compose -f docker-compose-dev.yml up -d --build
services:
backend-test:
container_name: backend-test
build:
context: ./server
dockerfile: Dockerfile
args:
- PORT=${DEV_BACKEND_PORT:-5001}
ports:
- "${DEV_BACKEND_PORT:-5001}:${DEV_BACKEND_PORT:-5001}"
volumes:
- ./homeglowdev/data:/app/data
- ./homeglowdev/uploads:/app/uploads
environment:
- NODE_ENV=development
- PORT=${DEV_BACKEND_PORT:-5001}
- TZ=${TZ:-America/New_York}
networks:
- homeglow-test-network
dns:
- 1.1.1.1
restart: unless-stopped
frontend-test:
container_name: frontend-test
build:
context: ./client
dockerfile: Dockerfile
args:
- FRONTEND_PORT=${DEV_FRONTEND_PORT:-3001}
- BACKEND_SERVICE=backend-test
- BACKEND_PORT=${DEV_BACKEND_PORT:-5001}
ports:
- "${DEV_FRONTEND_PORT:-3001}:${DEV_FRONTEND_PORT:-3001}"
environment:
- FRONTEND_PORT=${DEV_FRONTEND_PORT:-3001}
- BACKEND_SERVICE=backend-test
- BACKEND_PORT=${DEV_BACKEND_PORT:-5001}
depends_on:
- backend-test
networks:
- homeglow-test-network
restart: unless-stopped
networks:
homeglow-test-network:
driver: bridge