-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
135 lines (125 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
services:
stock-service:
image: modiconme/stock-service:latest
container_name: stock-service
ports:
- "8002:8002"
networks:
- stock-app-network
environment:
- "SPRING_PROFILES_ACTIVE=docker"
depends_on:
- postgres
restart: always
stock-cache-service:
image: modiconme/stock-cache-service:latest
container_name: stock-cache-service
ports:
- "8003:8003"
networks:
- stock-app-network
environment:
- "SPRING_PROFILES_ACTIVE=docker"
- "REDIS_HOST=redis"
- "REDIS_PORT=6379"
depends_on:
- postgres
- redis
links:
- redis
restart: always
tinkoff-service:
image: modiconme/tinkoff-service:latest
container_name: tinkoff-service
ports:
- "8004:8004"
environment:
- "ssoToken=${SSO_TOKEN}"
depends_on:
- stock-service
networks:
- stock-app-network
restart: always
moex-service:
image: modiconme/moex-service:latest
container_name: moex-service
ports:
- "8005:8005"
depends_on:
- stock-service
networks:
- stock-app-network
restart: always
cbr-service:
image: modiconme/cbr-service:latest
container_name: cbr-service
ports:
- "8006:8006"
depends_on:
- stock-service
networks:
- stock-app-network
restart: always
openfigi-service:
image: modiconme/openfigi-service:latest
container_name: openfigi-service
ports:
- "8007:8007"
depends_on:
- stock-service
networks:
- stock-app-network
restart: always
user-service:
image: modiconme/user-service:latest
container_name: user-service
ports:
- "8080:8080"
networks:
- stock-app-network
environment:
- SPRING_PROFILES_ACTIVE=docker
depends_on:
- postgres
restart: always
telegram-bot:
image: modiconme/telegram-bot:latest
container_name: telegram-bot
ports:
- "8081:8081"
networks:
- stock-app-network
environment:
- SPRING_PROFILES_ACTIVE=docker
- "botName=${TELEGRAM_BOT_NAME}"
- "botToken=${TELEGRAM_BOT_TOKEN}"
- "botOwner=${TELEGRAM_BOT_OWNER}"
depends_on:
- user-service
restart: always
redis:
image: redis:alpine
container_name: redis
command: redis-server
ports:
- "6379:6379"
environment:
- "REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL"
restart: always
networks:
- stock-app-network
postgres:
image: postgres
container_name: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
PGDATA: /data/postgres
ports:
- "5432:5432"
networks:
- stock-app-network
restart: unless-stopped
networks:
stock-app-network:
driver: bridge