-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 1.15 KB
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (40 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
# Docker Compose for Frontend Development (Standalone)
# Usage: docker-compose up --build
# Run from: front-end/ directory
services:
# ===========================================
# Frontend (Angular)
# ===========================================
frontend:
build:
context: .
dockerfile: Dockerfile
target: development
container_name: nirman-frontend-dev
restart: unless-stopped
ports:
- "4200:4200"
volumes:
# Mount source code for hot reload
- ./src:/app/src:delegated
- ./public:/app/public:delegated
# Prevent node_modules from being overwritten
- frontend_node_modules:/app/node_modules
# Mount angular.json for configuration changes
- ./angular.json:/app/angular.json:ro
environment:
- NODE_ENV=development
networks:
- nirman-frontend-network
# ===========================================
# Volumes
# ===========================================
volumes:
frontend_node_modules:
driver: local
# ===========================================
# Networks
# ===========================================
networks:
nirman-frontend-network:
driver: bridge