-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
74 lines (70 loc) · 2.11 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
version: '3'
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
depends_on:
- elasticsearch
- redis
environment:
- AWS_SECRET_ACCESS_KEY=${AWS_VALID_SECRET_KEY}
- AWS_ACCESS_KEY_ID=${AWS_VALID_ACCESS_KEY}
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- SAGE_MAKER_AWS_KEY=${SAGE_MAKER_AWS_KEY}
- SAGE_MAKER_AWS_SECRET=${SAGE_MAKER_AWS_SECRET}
- AWS_STORAGE_ACCESS_KEY=${AWS_STORAGE_ACCESS_KEY}
- AWS_STORAGE_SECRET_KEY=${AWS_STORAGE_SECRET_KEY}
- AWS_STORAGE_BUCKET_NAME=${AWS_STORAGE_BUCKET_NAME}
- AWS_STORAGE_REGION_NAME=${AWS_STORAGE_REGION_NAME}
- ELASTICSEARCH_URL=${ELASTICSEARCH_URL}
networks:
- default
- sx
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.16
ports:
- "9200:9200"
- "9300:9300"
environment:
- http.port=9200
- discovery.type=single-node
- bootstrap.memory_lock=true
- ES_HEAP_SIZE=1g
- ES_JAVA_OPTS=-Xms1g -Xmx1g
- http.cors.enabled=true
- http.cors.allow-origin="*"
- http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
- http.cors.allow-credentials=true
- network.publish_host=localhost
- xpack.security.enabled=false
networks:
- default
- sx
celery:
build: .
command: celery -A app worker --loglevel=info
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- SAGE_MAKER_AWS_KEY=${SAGE_MAKER_AWS_KEY}
- SAGE_MAKER_AWS_SECRET=${SAGE_MAKER_AWS_SECRET}
- AWS_STORAGE_ACCESS_KEY=${AWS_STORAGE_ACCESS_KEY}
- AWS_STORAGE_SECRET_KEY=${AWS_STORAGE_SECRET_KEY}
- AWS_STORAGE_BUCKET_NAME=${AWS_STORAGE_BUCKET_NAME}
- AWS_STORAGE_REGION_NAME=${AWS_STORAGE_REGION_NAME}
- ELASTICSEARCH_URL=${ELASTICSEARCH_URL}
networks:
- default
- sx
depends_on:
- app
- redis
redis:
image: redis:7
networks:
sx:
external: true