-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
56 lines (48 loc) · 1.23 KB
/
docker-compose.prod.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
55
56
# This can be used to run a production version of the Angular and Node containers
# See the readme.md for details on changes that are required in the Angular service
# Run docker-compose -f docker-compose.prod.yml build
# Run docker-compose -f docker-compose.prod.yml up
# Live long and prosper
version: '3.7'
services:
nginx:
container_name: nginx-angular
image: nginx-angular
build:
context: .
dockerfile: nginx.prod.dockerfile
ports:
- "80:80"
- "443:443"
depends_on:
- node
networks:
- app-network
node:
container_name: angular-node-service
image: angular-node-service
build:
context: ./server
dockerfile: node.dockerfile
environment:
- NODE_ENV=production
ports:
- "3000:3000"
networks:
- app-network
# Disabled in case someone is running this on Windows (OK to uncomment if on Mac/Linux)
# 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:
# - "8080:8080"
# networks:
# - app-network
networks:
app-network:
driver: bridge