-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
76 lines (75 loc) · 1.94 KB
/
docker-compose.yaml
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
version: '3'
services:
db:
image: postgres:11
webpack:
command: npm run start
volumes:
- ./dll/static:/node_deps/static
build:
context: .
dockerfile: Dockerfile.build
web:
build:
context: .
dockerfile: Dockerfile.dev
command: python manage.py runserver 0.0.0.0:8000
image: dll_web
environment:
- REDIS_HOSTNAME=redis
- DATABASE_USER=postgres
- DATABASE_NAME=postgres
- DATABASE_HOST=db
- DJANGO_DEBUG=True
- CELERY_TASK_ALWAYS_EAGER=True
- SOLR_HOSTNAME=solr
- EMAIL_HOST=floki.rz.tuhh.de
- EMAIL_PORT=25
- EMAIL_USE_TLS=False
- GOOGLE_RECAPTCHA_WEBSITE_KEY=6Le0P8MUAAAAAD7sqvNRhIjrqW6iB33K7KUfNkBg
- GOOGLE_RECAPTCHA_SECRET_KEY=6Le0P8MUAAAAAPB0eDq-KKwc5yCIJxfMQpsdicFC
volumes:
- .:/code
user: "1000:1000"
ports:
- "8000:8000"
depends_on:
- db
redis:
image: "redis:alpine"
hostname: redis
celery:
image: dll_web
command: [celery, worker, --app=dll.configuration.celery.app, --concurrency=1, --loglevel=DEBUG]
environment:
- REDIS_HOSTNAME=redis
- DATABASE_USER=postgres
- DATABASE_NAME=postgres
- DATABASE_HOST=db
- DJANGO_DEBUG=True
- CELERY_TASK_ALWAYS_EAGER=True
- SOLR_HOSTNAME=solr
- EMAIL_HOST=floki.rz.tuhh.de
- EMAIL_PORT=25
- EMAIL_USE_TLS=False
user: "1000:1000"
volumes:
- .:/code
depends_on:
- db
- redis
solr:
image: solr
ports:
- "8983:8983"
volumes:
- ./solr/conf:/opt/solr/server/solr/configsets/dll
entrypoint:
- solr-precreate
command: ["dll-default", "/opt/solr/server/solr/configsets/dll"]