forked from dashersw/microservices-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
40 lines (36 loc) · 911 Bytes
/
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
version: '3'
services:
lb:
image: dockercloud/haproxy
links:
- api-gateway
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 80:80
- 443:443
restart: on-failure
api-gateway:
build: .
image: microservices-workshop/api-gateway:production
restart: on-failure
environment:
- VIRTUAL_HOST=api-gateway.app.com
ports:
- 3000:3000
command: node api-gateway
delivery-service:
build: .
image: microservices-workshop/delivery-service:production
restart: on-failure
command: node delivery-service
order-service:
build: .
image: microservices-workshop/order-service:production
restart: on-failure
command: node order-service
restaurants-service:
build: .
image: microservices-workshop/restaurants-service:production
restart: on-failure
command: node restaurants-service