-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 821 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (33 loc) · 821 Bytes
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
version: '3.8'
services:
# Development service
angular-dev:
build:
context: .
target: development
dockerfile: Dockerfile
container_name: angular-starter-dev
ports:
- '4200:4200'
volumes:
# Mount source code for live reload
- .:/app
# Anonymous volume for node_modules (prevents overwriting from host)
- /app/node_modules
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true
command: ng serve --host 0.0.0.0 --poll 2000
stdin_open: true
tty: true
# Production service (for testing production build)
angular-prod:
build:
context: .
target: production
dockerfile: Dockerfile
container_name: angular-starter-prod
ports:
- '8080:80'
environment:
- NODE_ENV=production