-
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) · 1.35 KB
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (43 loc) · 1.35 KB
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
# Latest Docker Compose Version
version: "3.8"
services:
eureka:
# Requires the use of a previously built image with the given name
image: eureka2
container_name: eureka
# Use the specified port exposed in the Dockerfile.
ports:
- "8761:8761"
conversion_service:
# Requires the use of a previously built image with the given name
image: conversion_service2
container_name: conversion_service
# Use the specified port exposed in the Dockerfile.
ports:
- "2222:2222"
# Link with the eureka service
links:
- eureka
# Requires eureka to run.
depends_on:
- eureka
# Set the link to Eureka who will then perform the rest of service communication.
environment:
- eureka.client.serviceUrl.defaultZone=http://eureka:8761/eureka/
client:
# Requires the use of a previously built image with the given name
image: client2
container_name: client
# Use the specified port exposed in the Dockerfile.
ports:
- "4444:4444"
# Link with the eureka service
links:
- eureka
# Set the link to Eureka who will then perform the rest of service communication.
environment:
- eureka.client.serviceUrl.defaultZone=http://eureka:8761/eureka/
# Requires eureka and conversion_service to run.
depends_on:
- eureka
- conversion_service