-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
107 lines (96 loc) · 2.78 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
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
103
104
105
106
107
version: '2.1'
services:
users-db:
image: postgres
restart: always
environment:
POSTGRES_USER: $USERS_DB_POSTGRES_USER
POSTGRES_PASSWORD: $USERS_DB_POSTGRES_PASSWORD
POSTGRES_DB: sn-users
sn-discovery-service:
image: social-network/sn-discovery-service:latest
restart: always
ports:
- "8761:8761"
sn-gateway-service:
image: social-network/sn-gateway-service:latest
restart: always
ports:
- "8765:8765"
depends_on:
- sn-discovery-service
sn-monitor-dashboard:
image: social-network/sn-monitor-dashboard:latest
restart: always
ports:
- "7979:7979"
depends_on:
- sn-discovery-service
sn-auth-service:
environment:
SN_KEY_STORE_PASSWORD: $SN_KEY_STORE_PASSWORD
SN_STORAGE_SERVICE_PASSWORD: $SN_STORAGE_SERVICE_PASSWORD
SN_USER_SERVICE_PASSWORD: $SN_USER_SERVICE_PASSWORD
SN_USER_QUERY_SERVICE_PASSWORD: $SN_USER_QUERY_SERVICE_PASSWORD
POSTGRES_USER: $USERS_DB_POSTGRES_USER
POSTGRES_PASSWORD: $USERS_DB_POSTGRES_PASSWORD
image: social-network/sn-auth-service:latest
restart: always
ports:
- "9999:9999"
depends_on:
- sn-gateway-service
- sn-discovery-service
sn-user-service:
environment:
SPRING_ACTIVE_PROFILE: development
SN_USER_SERVICE_PASSWORD: $SN_USER_SERVICE_PASSWORD
POSTGRES_USER: $USERS_DB_POSTGRES_USER
POSTGRES_PASSWORD: $USERS_DB_POSTGRES_PASSWORD
image: social-network/sn-user-service:latest
restart: always
depends_on:
- sn-gateway-service
- sn-discovery-service
sn-user-query-service:
environment:
SN_USER_QUERY_SERVICE_PASSWORD: $SN_USER_QUERY_SERVICE_PASSWORD
POSTGRES_USER: $USERS_DB_POSTGRES_USER
POSTGRES_PASSWORD: $USERS_DB_POSTGRES_PASSWORD
image: social-network/sn-user-query-service:latest
restart: always
depends_on:
- sn-gateway-service
- sn-discovery-service
sqs:
image: graze/sqs-local
ports:
- 9324:9324
volumes:
- ./conf/elasticmq.conf:/elasticmq.conf
sn-notification-service:
environment:
SPRING_ACTIVE_PROFILE: development
image: social-network/sn-notification-service:latest
restart: always
depends_on:
- sqs
cassandra:
image: cassandra:latest
ports:
- "9042:9042"
sn-message-service:
environment:
SPRING_ACTIVE_PROFILE: development
image: social-network/sn-message-service:latest
restart: always
depends_on:
- cassandra
- sqs
- sn-gateway-service
- sn-discovery-service
volumes:
- ./scripts/wait_for_it.sh:/wait_for_it.sh
command: >
bash -c "chmod +x wait_for_it.sh
&& ./wait_for_it.sh cassandra:9042 -- java -Djava.security.egd=file:/dev/./urandom -jar /app.jar"