Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (67 loc) · 1.48 KB
/
Copy pathdocker-compose.yml
File metadata and controls
73 lines (67 loc) · 1.48 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
services:
service-registry:
build: ./service-registry
image: yash9912/task-manager-registry
ports:
- "8761:8761"
networks:
- microservices-net
environment:
- SPRING_PROFILES_ACTIVE=docker
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8761/eureka/apps"]
interval: 10s
timeout: 5s
retries: 10
restart: always
redis:
image: redis:7
ports:
- "6379:6379"
command: ["redis-server", "--bind", "0.0.0.0", "--protected-mode", "no"]
networks:
- microservices-net
restart: always
auth-service:
build: ./auth-service
image: yash9912/task-manager-auth
ports:
- "8085:8081"
depends_on:
- service-registry
- redis
environment:
- SPRING_PROFILES_ACTIVE=docker
networks:
- microservices-net
restart: always
task-service:
build: ./task-service
image: yash9912/task-manager-task
ports:
- "8082:8082"
depends_on:
- service-registry
- redis
environment:
- SPRING_PROFILES_ACTIVE=docker
networks:
- microservices-net
restart: always
api-gateway:
build: ./api-gateway
image: yash9912/task-manager-gateway
ports:
- "8090:8080"
depends_on:
- service-registry
- auth-service
- task-service
environment:
- SPRING_PROFILES_ACTIVE=docker
networks:
- microservices-net
restart: always
networks:
microservices-net:
driver: bridge