-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (43 loc) · 1.33 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
version: "3.8"
services:
eureka-server:
build: ./movie-services-registry
container_name: eureka-server
# you can use command `docker compose up --build` to build and run the image.
ports:
- "8761:8761"
environment:
- SERVER_PORT=8761
- APPLICATION_NAME=movie-services-registry
- REGISTER_WITH_EUREKA=false
- FETCH_REGISTRY=false
booking-service:
build: ./booking-service
container_name: booking-service
ports:
- "8080:8080"
environment:
- SERVER_PORT=8080
- APPLICATION_NAME=booking-service
- REGISTER_WITH_EUREKA=true
- DEFAULT_ZONE=http://eureka-server:8761/eureka/
payment-service:
build: ./payment-service
container_name: payment-service
ports:
- "8081:8081"
environment:
- SERVER_PORT=8081
- APPLICATION_NAME=payment-service
- REGISTER_WITH_EUREKA=true
- DEFAULT_ZONE=http://eureka-server:8761/eureka
notification-service:
build: ./notification-service
container_name: notification-service
ports:
- "8082:8082"
environment:
- SERVER_PORT=8082
- APPLICATION_NAME=notification-service
- REGISTER_WITH_EUREKA=true
- DEFAULT_ZONE=http://eureka-server:8761/eureka/