-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf.backup-docker-compose
More file actions
58 lines (52 loc) · 1.18 KB
/
nginx.conf.backup-docker-compose
File metadata and controls
58 lines (52 loc) · 1.18 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
version: '3.8'
services:
# Production service (uses built Docker image)
web:
image: task-manager:latest
build: .
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./src:/usr/share/nginx/html:ro
- logs:/var/log/nginx
environment:
- NODE_ENV=production
- APP_PORT=80
restart: unless-stopped
networks:
- task-network
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Development service with hot reload
dev:
build:
context: .
target: builder # Uses builder stage from Dockerfile
ports:
- "3000:3000"
volumes:
- ./src:/app/src
- ./public:/app/public
- /app/node_modules # Anonymous volume for node_modules
command: npm run dev
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true
networks:
- task-network
stdin_open: true
tty: true
yes
networks:
task-network:
driver: bridge
name: task-manager-network
volumes:
logs:
driver: local