-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.test.yml
89 lines (83 loc) · 2.44 KB
/
docker-compose.test.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
version: "3"
services:
api:
image: newara
depends_on:
- celery
- db
- redis
- elastic
environment:
- DJANGO_SETTINGS_MODULE=ara.settings.test
- DJANGO_ENV=${DJANGO_ENV}
- SECRET_KEY=${SECRET_KEY}
- AWS_BUCKET_NAME=sparcs-newara-dev
- AWS_BUCKET_NAME_STATIC=sparcs-kaist-ara-beta-static
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- SSO_CLIENT_ID=${SSO_CLIENT_ID}
- SSO_SECRET_KEY=${SSO_SECRET_KEY}
- NEWARA_DB_HOST=db
- NEWARA_DB_PORT=3306
- NEWARA_DB_USER=root
- NEWARA_DB_PASSWORD=root-password
- NEWARA_DB_NAME=new_ara
- NEWARA_REDIS_ADDRESS=redis
- NEWARA_REDIS_PORT=6379
- NEWARA_ELASTICSEARCH_HOST=elastic
- NEWARA_ELASTICSEARCH_PORT=9200
entrypoint: /newara/www/.docker/run.sh
volumes:
- synonym:/newara/www/ara/db/elasticsearch
celery:
image: newara
depends_on:
- db
- redis
- elastic
environment:
- DJANGO_SETTINGS_MODULE=main.settings.test
- DJANGO_ENV=${DJANGO_ENV}
- SECRET_KEY=${SECRET_KEY}
- AWS_BUCKET_NAME=sparcs-newara-dev
- AWS_BUCKET_NAME_STATIC=sparcs-kaist-ara-beta-static
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- SSO_CLIENT_ID=${SSO_CLIENT_ID}
- SSO_SECRET_KEY=${SSO_SECRET_KEY}
- NEWARA_DB_HOST=db
- NEWARA_DB_PORT=3306
- NEWARA_DB_USER=root
- NEWARA_DB_PASSWORD=root-password
- NEWARA_DB_NAME=new_ara
- NEWARA_REDIS_ADDRESS=redis
- NEWARA_REDIS_PORT=6379
- NEWARA_ELASTICSEARCH_HOST=elastic
- NEWARA_ELASTICSEARCH_PORT=9200
- C_FORCE_ROOT=true
entrypoint: /newara/www/.docker/run-celery.sh
db:
image: mysql:8
expose:
- 3306
environment:
- MYSQL_ROOT_PASSWORD=root-password
- MYSQL_DATABASE=new_ara
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
redis:
image: redis:6
expose:
- 6379
elastic:
image: elasticsearch:7.9.2
expose:
- 9200
environment:
- discovery.type=single-node
command: >
bash -c "bin/elasticsearch-plugin list | grep -q analysis-nori || bin/elasticsearch-plugin install --batch analysis-nori
&& /usr/local/bin/docker-entrypoint.sh"
volumes:
- synonym:/usr/share/elasticsearch/config/analysis
volumes:
synonym: