-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.15 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
version: '3.9'
services:
innerhue:
build:
context: .
dockerfile: Dockerfile
target: runner
container_name: innerhue-app
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- NEXT_TELEMETRY_DISABLED=1
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- innerhue-network
# For development with hot reload (optional service)
innerhue-dev:
build:
context: .
dockerfile: Dockerfile.dev
target: dev
container_name: innerhue-dev
restart: unless-stopped
ports:
- "3001:3000"
volumes:
- .:/app
- /app/node_modules
- /app/.next
environment:
- NODE_ENV=development
- NEXT_TELEMETRY_DISABLED=1
networks:
- innerhue-network
profiles:
- dev
networks:
innerhue-network:
driver: bridge
name: innerhue-net
# Use this for development: docker-compose --profile dev up innerhue-dev
# Use this for production: docker-compose up innerhue