-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (56 loc) · 1.37 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
53
54
55
56
57
58
59
version: '2.3'
services:
config-server:
build: ./config-server
ports:
- "8888:8888"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8888/actuator/info"]
interval: 5s
timeout: 4s
retries: 30
eureka-server:
build: ./eureka-server
ports:
- "8761:8761"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8761/actuator/info"]
interval: 5s
timeout: 4s
retries: 30
zuul-server:
build: ./zuul-server
ports:
- "8080:8080"
depends_on:
eureka-server:
condition: service_healthy
environment:
ENV_EUREKA_URL: ${ENV_EUREKA_URL}
products-service:
build: ./products-service
depends_on:
# config-server:
# condition: service_healthy
eureka-server:
condition: service_healthy
environment:
# ENV_CONFIG_URL: ${ENV_CONFIG_URL}
ENV_EUREKA_URL: ${ENV_EUREKA_URL}
stock-service:
build: ./stock-service
depends_on:
config-server:
condition: service_healthy
eureka-server:
condition: service_healthy
ports:
- "8005:8005"
environment:
ENV_CONFIG_URL: ${ENV_CONFIG_URL}
ENV_EUREKA_URL: ${ENV_EUREKA_URL}
#TODO environment variables are on .env file, if I put them here, container do not receive values (O_o)
# RUN
# docker-compose up
# CLEAN
# docker-compose rm