-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (57 loc) · 1.28 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
60
61
62
version: '2.1'
services:
gateway:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
depends_on:
eureka:
condition: service_healthy
environment:
EUREKA_URL: http://eureka:8761/eureka
helloworld-service:
image: nadchel/helloworld-service:1.0
ports:
- "8090:8090"
depends_on:
eureka:
condition: service_healthy
environment:
EUREKA_URL: http://eureka:8761/eureka
token-service:
image: nadchel/token-service:1.0
ports:
- "8100:8100"
depends_on:
eureka:
condition: service_healthy
db:
condition: service_healthy
environment:
POSTGRES_URL: jdbc:postgresql://db:5432/postgres
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: postgres
EUREKA_URL: http://eureka:8761/eureka
db:
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
timeout: 10s
retries: 10
eureka:
image: nadchel/eureka-server:1.0
ports:
- "8761:8761"
healthcheck:
test: ["CMD-SHELL", "curl -f http://eureka:8761"]
interval: 10s
timeout: 10s
retries: 10