forked from DanWahlin/Angular-JumpStart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (48 loc) · 1.07 KB
/
docker-compose.yml
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
# Run docker-compose build
# Run docker-compose up
# Visit http://localhost
# Live long and prosper
version: '3.9'
services:
nginx:
container_name: nginx-angular-jumpstart
image: nginx-angular-jumpstart
build:
context: .
dockerfile: .docker/nginx.dockerfile
ports:
- "80:80"
- "443:443"
depends_on:
- node
networks:
- app-network
node:
container_name: node-service-jumpstart
image: node-service-jumpstart
build:
context: .
dockerfile: .docker/node.dockerfile
environment:
- NODE_ENV=production
- CONTAINER=true
ports:
- "8080:8080"
networks:
- app-network
# Can uncomment to get cAdvisor going on Mac/Linux. Not for Windows though.
# cadvisor:
# container_name: cadvisor
# image: google/cadvisor
# volumes:
# - /:/rootfs:ro
# - /var/run:/var/run:rw
# - /sys:/sys:ro
# - /var/lib/docker/:/var/lib/docker:ro
# ports:
# - "9000:8080"
# networks:
# - app-network
networks:
app-network:
driver: bridge