-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (43 loc) · 924 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (43 loc) · 924 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
36
37
38
39
40
41
42
43
44
45
version: "3.9"
services:
service-discovery:
build:
context: .
dockerfile: ./service-discovery/Dockerfile-local
ports:
- "8761:8761"
networks:
- ecommerce
restart: on-failure
user-service:
depends_on:
- service-discovery
build:
context: .
dockerfile: ./user-service/Dockerfile-local
ports:
- "8080:8080"
networks:
- ecommerce
environment:
SERVICE_DISCOVERY_HOST: service-discovery
SERVICE_DISCOVERY_PORT: 8761
restart: on-failure
api-gateway:
depends_on:
- service-discovery
- user-service
build:
context: .
dockerfile: ./api-gateway/Dockerfile-local
ports:
- "8000:8000"
networks:
- ecommerce
environment:
SERVICE_DISCOVERY_HOST: service-discovery
SERVICE_DISCOVERY_PORT: 8761
restart: on-failure
networks:
ecommerce:
driver: bridge