-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
88 lines (81 loc) · 1.86 KB
/
docker-compose.yaml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: '3.3'
services:
data-base:
container_name: PostgreSQL
hostname: PostgreSQL
image: postgres
restart: always
ports:
- '5433:5432'
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=1234
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-U", "root" ]
interval: 5s
timeout: 1s
retries: 2
networks:
spring-cloud-network:
aliases:
- data-base
front-service:
container_name: front-service
hostname: front-service
image: front-service:latest
ports:
- '8190:80'
networks:
spring-cloud-network:
aliases:
- front-service
video-service:
container_name: video-service
hostname: video-service
environment:
- SPRING_APPLICATION_NAME=video-service
- SPRING_PROFILES_ACTIVE=deploy
- DATABASE_URI=data-base
image: video-service:latest
ports:
- '8189:8189'
networks:
spring-cloud-network:
aliases:
- video-service
depends_on:
- data-base
gateway-service:
container_name: gateway-service
hostname: gateway-service
environment:
- SPRING_APPLICATION_NAME=gateway-service
- SPRING_PROFILES_ACTIVE=deploy
image: gateway-service:latest
ports:
- '8188:8188'
networks:
spring-cloud-network:
aliases:
- gateway-service
depends_on:
- video-service
client-service:
container_name: client-service
hostname: client-service
environment:
- SPRING_APPLICATION_NAME=client-service
- SPRING_PROFILES_ACTIVE=deploy
- DATABASE_URI=data-base
image: client-service:latest
ports:
- '8191:8191'
networks:
spring-cloud-network:
aliases:
- client-service
depends_on:
- data-base
networks:
spring-cloud-network:
driver: bridge