-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
102 lines (92 loc) · 2.56 KB
/
docker-compose.yaml
File metadata and controls
102 lines (92 loc) · 2.56 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: '3.8'
services:
keycloak:
image: quay.io/keycloak/keycloak:latest
environment:
KC_BOOTSTRAP_ADMIN_USERNAME: "admin"
KC_BOOTSTRAP_ADMIN_PASSWORD: "password"
KC_HEALTH_ENABLED: true
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:7080/health/ready" ]
interval: 15s
timeout: 2s
retries: 15
command: [ "start-dev", "--http-port=7080", "--https-port=7443" ]
ports:
- "7080:7080"
- "7443:7443"
depends_on:
- postgres
postgres:
image: postgres:latest
container_name: postgres_container
environment:
POSTGRES_USER: "spring_admin"
POSTGRES_PASSWORD: "password"
POSTGRES_DB: "blog_chat"
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- "5432:5432"
volumes:
- .:/docker-entrypoint-initdb.d
- my-data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U habrpguser -d habrdb" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
deploy:
resources:
limits:
cpus: '1'
memory: 4G
api-gateway:
image: hexaend/api-gateway:spring-plugin
ports:
- "8080:8080"
depends_on:
- config-server
- eureka-server
- user-service
- post-service
- chat-serivce
chat-serivce:
image: hexaend/chat-service:spring-plugin
ports:
- "8082:8082"
depends_on:
- config-server
- eureka-server
- postgres
config-server:
image: hexaend/config-server:spring-plugin
ports:
- "8888:8888"
depends_on:
- eureka-server
eureka-server:
image: hexaend/eureka-server:spring-plugin
ports:
- "8761:8761"
depends_on:
- postgres
post-service:
image: hexaend/post-service:spring-plugin
ports:
- "8081:8081"
depends_on:
- config-server
- eureka-server
- postgres
user-service:
image: hexaend/user-service:spring-plugin
ports:
- "8083:8083"
depends_on:
- config-server
- eureka-server
- postgres
volumes:
my-data: