-
Notifications
You must be signed in to change notification settings - Fork 29
/
docker-compose.yml
42 lines (39 loc) · 1.06 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
services:
#find a way to tear this down after the init scripts has worked
setup-meilisearch:
build: ./tools/meilisearch-index-generator/
command: ["/wait-for-it/wait-for-it.sh", "meilisearch:7700", "--", "make", "run"]
depends_on:
- meilisearch
environment:
MEILISEARCH_HOST: http://meilisearch:7700
MEILISEARCH_MASTER_KEY: meilisearch-master-key
volumes:
- ./scripts/wait-for-it/:/wait-for-it
- ./tools/meilisearch-index-generator/data:/app/data
meilisearch:
image: getmeili/meilisearch:v1.9
volumes:
- ./data.ms:/data.ms
environment:
MEILI_MASTER_KEY: meilisearch-master-key
ports:
- 7700:7700
api:
build: ./api
depends_on:
- setup-meilisearch
environment:
MEILISEARCH_HOST: http://meilisearch:7700
MEILISEARCH_MASTER_KEY: meilisearch-master-key
ports:
- 8811:8811
frontend:
build: ./frontend
depends_on:
- api
environment:
REACT_APP_API_BASE_URL: http://localhost:8811
REACT_ENV: development
ports:
- 3000:80