-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathdocker-compose.yml
52 lines (48 loc) · 1.14 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
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:
context: .
dockerfile: development.Dockerfile
image: microservices-workshop/api-gateway:dev
restart: on-failure
environment:
- VIRTUAL_HOST=api-gateway.app.com
ports:
- 3000:3000
volumes:
- ./api-gateway:/app/src
delivery-service:
build:
context: .
dockerfile: development.Dockerfile
image: microservices-workshop/delivery-service:dev
restart: on-failure
volumes:
- ./delivery-service:/app/src
order-service:
build:
context: .
dockerfile: development.Dockerfile
image: microservices-workshop/order-service:dev
restart: on-failure
volumes:
- ./order-service:/app/src
restaurants-service:
build:
context: .
dockerfile: development.Dockerfile
image: microservices-workshop/restaurants-service:dev
restart: on-failure
volumes:
- ./restaurants-service:/app/src