-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
152 lines (141 loc) · 3.48 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
version: '3.7'
services:
ui:
container_name: ui
build:
context: .
dockerfile: Dockerfile
command: npm start
volumes:
- '.:/app'
- '/app/node_modules'
ports:
- "3000:3000"
environment:
- CHOKIDAR_USEPOLLING=true
profiles: ["all", "frontend"]
storybook:
container_name: storybook
build:
context: .
dockerfile: Dockerfile
command: npm run storybook
volumes:
- '.:/app'
- '/app/node_modules'
ports:
- "6006:6006"
environment:
- CHOKIDAR_USEPOLLING=true
profiles: ["all", "frontend"]
# TEMPORARY SOLUTION
artemis:
image: vromero/activemq-artemis:latest-alpine
container_name: api_activemq
environment:
ARTEMIS_USERNAME: banka
ARTEMIS_PASSWORD: banka1234
ports:
- "61616:61616/tcp"
profiles: ["all", "backend"]
db-user:
image: postgres
container_name: api_db_user
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: docker
POSTGRES_DB: postgres
volumes:
- db-user:/var/lib/postgresql/data
profiles: ["all", "backend"]
db-berza:
image: postgres
container_name: api_db_berza
ports:
- "5433:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: docker
POSTGRES_DB: postgres
volumes:
- db-berza:/var/lib/postgresql/data
profiles: ["all", "backend"]
db-influx:
image: influxdb:2.1.1
container_name: api_db_influx
environment:
DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_USERNAME: raf
DOCKER_INFLUXDB_INIT_PASSWORD: 12345678
DOCKER_INFLUXDB_INIT_ORG: raf
DOCKER_INFLUXDB_INIT_BUCKET: stocks
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: mytoken
ports:
- "8086:8086"
volumes:
- influx-data:/var/lib/influxdb2
- influx-config:/etc/influxdb2
profiles: ["all", "backend"]
influx-scrapper:
image: ghcr.io/raf-si-2021/banka-influx-scrapper:latest
container_name: api_influx_scrapper
ports:
- "8000:80"
links:
- db-influx
depends_on:
- db-influx
profiles: ["all", "backend"]
korisnicki-servis:
image: ghcr.io/raf-si-2021/banka-user-service:latest
container_name: api_user_service
environment:
spring.datasource.hikari.jdbcUrl: jdbc:postgresql://db-user:5432/postgres
spring.activemq.broker-url: tcp://artemis:61616
ports:
- "8080:8080"
links:
- db-user
- artemis
depends_on:
- db-user
- artemis
profiles: ["all", "backend"]
email-servis:
image: ghcr.io/raf-si-2021/banka-mail-service:latest
container_name: api_email_service
environment:
spring.mail.username: "email"
spring.mail.password: "password"
spring.activemq.broker-url: tcp://artemis:61616
ports:
- "8081:8081"
links:
- artemis
depends_on:
- artemis
profiles: ["all", "backend"]
berza:
image: ghcr.io/raf-si-2021/banka-berza:latest
container_name: api_berza
environment:
spring.datasource.hikari.jdbcUrl: jdbc:postgresql://db-berza:5432/postgres
berza.influxscrapper.endpoint: http://influx-scrapper/
berza.berze.csv: berze.csv
berza.inflacije.csv: inflacije.csv
ports:
- "8082:8082"
links:
- db-berza
- influx-scrapper
depends_on:
- db-berza
- influx-scrapper
profiles: ["all", "backend"]
volumes:
db-user:
db-berza:
influx-data:
influx-config: