-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
70 lines (64 loc) · 1.6 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
---
version: '3'
volumes:
es_data:
redis_data:
node_modules:
services:
scope:
build: .
environment:
- DJANGO_ALLOWED_HOSTS=*
- DJANGO_SECRET_KEY=secret_key
- DJANGO_DEBUG=True
- ES_HOSTS=elasticsearch:9200
- CELERY_BROKER_URL=redis://redis:6379
- SS_HOSTS=http://test:test@192.168.1.128:62081
volumes:
- node_modules:/src/node_modules
- .:/src
worker:
build: .
environment:
- DJANGO_ALLOWED_HOSTS=*
- DJANGO_SECRET_KEY=secret_key
- DJANGO_DEBUG=True
- ES_HOSTS=elasticsearch:9200
- CELERY_BROKER_URL=redis://redis:6379
- SS_HOSTS=http://test:test@192.168.1.128:62081
volumes:
- node_modules:/src/node_modules
- .:/src
command: >
watchmedo auto-restart -p *.py -i ./.tox/* -R --
celery -A scope worker -l info
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
- cluster.routing.allocation.disk.threshold_enabled=false
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es_data:/usr/share/elasticsearch/data
ports:
- '127.0.0.1:43431:9200'
redis:
image: redis:alpine
user: redis
command: '--appendonly yes'
volumes:
- redis_data:/data
ports:
- '127.0.0.1:43432:6379'
nginx:
image: nginx:stable-alpine
volumes:
- ./media:/src/media:ro
- ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- '127.0.0.1:43430:80'