-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
213 lines (202 loc) · 5.24 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
version: "3"
services:
db:
image: postgres
restart: always
env_file:
- ./backend/.env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 5
frontend_proxy:
container_name: kioku-frontend_proxy
restart: always
build:
context: backend
dockerfile: services/frontend/Dockerfile
env_file:
- ./backend/.env
depends_on:
db:
condition: service_healthy
user_service:
container_name: kioku-user_service
restart: always
build:
context: backend
dockerfile: services/user/Dockerfile
target: builder
develop:
watch:
- path: backend/pkg
action: rebuild
- path: backend/store
action: rebuild
- path: backend/services/user
action: rebuild
- path: backend/services/carddeck/proto
action: rebuild
- path: backend/services/collaboration/proto
action: rebuild
- path: backend/services/srs/proto
action: rebuild
command: /go/src/kioku/services/user/user
env_file:
- ./backend/.env
depends_on:
db:
condition: service_healthy
carddeck_service:
container_name: kioku-carddeck_service
restart: always
build:
context: backend
dockerfile: services/carddeck/Dockerfile
target: builder
develop:
watch:
- path: backend/pkg
action: rebuild
- path: backend/store
action: rebuild
- path: backend/services/carddeck
action: rebuild
- path: backend/services/collaboration/proto
action: rebuild
- path: backend/services/srs/proto
action: rebuild
- path: backend/services/user/proto
action: rebuild
command: /go/src/kioku/services/carddeck/carddeck
env_file:
- ./backend/.env
depends_on:
db:
condition: service_healthy
collaboration_service:
container_name: kioku-collaboration_service
restart: always
build:
context: backend
dockerfile: services/collaboration/Dockerfile
target: builder
develop:
watch:
- path: backend/pkg
action: rebuild
- path: backend/store
action: rebuild
- path: backend/services/collaboration
action: rebuild
- path: backend/services/carddeck/proto
action: rebuild
- path: backend/services/user/proto
action: rebuild
- path: backend/services/srs/proto
action: rebuild
command: /go/src/kioku/services/collaboration/collaboration
env_file:
- ./backend/.env
depends_on:
db:
condition: service_healthy
srs_service:
container_name: kioku-srs_service
restart: always
build:
context: backend
dockerfile: services/srs/Dockerfile
target: builder
develop:
watch:
- path: backend/pkg
action: rebuild
- path: backend/store
action: rebuild
- path: backend/services/srs
action: rebuild
- path: backend/services/carddeck/proto
action: rebuild
- path: backend/services/user/proto
action: rebuild
- path: backend/services/collaboration/proto
action: rebuild
command: /go/src/kioku/services/srs/srs
env_file:
- ./backend/.env
depends_on:
db:
condition: service_healthy
notification_service:
container_name: kioku-notification_service
restart: always
build:
context: backend
dockerfile: services/notification/Dockerfile
target: builder
develop:
watch:
- path: backend/pkg
action: rebuild
- path: backend/store
action: rebuild
- path: backend/services/notification
action: rebuild
- path: backend/services/carddeck/proto
action: rebuild
- path: backend/services/user/proto
action: rebuild
- path: backend/services/collaboration/proto
action: rebuild
- path: backend/services/srs/proto
action: rebuild
command: /go/src/kioku/services/notification/notification
env_file:
- ./backend/.env
depends_on:
db:
condition: service_healthy
frontend:
container_name: kioku-frontend
restart: always
build:
context: frontend
target: builder
command: npm run dev
develop:
watch:
- path: frontend/package.json
action: rebuild
- path: "frontend/locales/"
target: app/locales/
action: sync+restart
- path: "frontend/"
target: app/
action: sync
ignore:
- node_modules/
ports:
- "127.0.0.1:3000:3000"
env_file:
- ./backend/.env
go-micro-dashboard:
image: xpunch/go-micro-dashboard:latest
container_name: kioku-micro-dashboard
ports:
- "127.0.0.1:3001:8082"
env_file:
- ./backend/.env
pgadmin:
image: dpage/pgadmin4
container_name: kioku-pgadmin
restart: always
ports:
- "127.0.0.1:3002:80"
env_file:
- ./backend/.env
volumes:
- pgadmin-data:/var/lib/pgadmin
volumes:
pgadmin-data: