-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
48 lines (46 loc) · 1.08 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
48 lines (46 loc) · 1.08 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
# Docker Compose for Frontend Production (Standalone)
# Usage: docker-compose -f docker-compose.prod.yml up --build -d
# Run from: front-end/ directory
services:
# ===========================================
# Frontend (Angular + Nginx)
# ===========================================
frontend:
build:
context: .
dockerfile: Dockerfile
target: production
container_name: nirman-frontend-prod
restart: always
ports:
- "80:80"
networks:
- nirman-frontend-network
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:80/health",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
deploy:
resources:
limits:
cpus: "0.5"
memory: 128M
reservations:
cpus: "0.1"
memory: 64M
# ===========================================
# Networks
# ===========================================
networks:
nirman-frontend-network:
driver: bridge