-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-dev.yml
65 lines (58 loc) · 1.95 KB
/
docker-compose-dev.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
version: '2.4'
services:
web:
image: hansendz/ddionrails:latest-dev
command: bash -c "while [ 1 ]; do python /usr/src/app/manage.py runserver_plus --print-sql 0.0.0.0:8000; test $$? -gt 128 && break; done"
env_file:
- docker/environments/django.env.example
- docker/environments/database.env.example
- docker/environments/elasticsearch.env.example
volumes:
- ./ddionrails:/usr/src/app/ddionrails
- ./config:/usr/src/app/config
- ./local:/usr/src/app/local
- ./tests:/usr/src/app/tests
- ./templates:/usr/src/app/templates
- ./htmlcov:/usr/src/app/htmlcov
- ./assets:/usr/src/app/assets
- ./static/dist:/usr/src/app/static/dist
- ./webpack.config.js:/usr/src/app/webpack.config.js
pids_limit: -1
postgres:
env_file:
- docker/environments/database.env.example
elasticsearch:
environment:
# settings for dejavu-access, see https://hub.docker.com/r/appbaseio/dejavu/
# https://opensource.appbase.io/reactive-manual/vue/getting-started/reactivebase.html
- http.cors.enabled=true
- http.cors.allow-credentials=true
- http.cors.allow-origin=* # TODO set host and port of dejavu / reactivesearch
- http.cors.allow-headers=Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With
ports:
- 9200:9200
# Uncomment these lines, if you want to use Kibana
# kibana:
# image: kibana:4.6.0
# ports:
# - 5601:5601
# networks:
# - ddi_net
# Uncomment these lines, if you want to use dejavu
# dejavu:
# # see: https://hub.docker.com/r/appbaseio/dejavu/
# image: appbaseio/dejavu:3.3.1
# ports:
# - 1358:1358
# networks:
# - ddi_net
nginx:
volumes:
- ./docker/nginx/nginx.dev.conf:/etc/nginx/nginx.conf
# Uncomment these lines, if you want to use selenium
# selenium:
# image: selenium/standalone-firefox:3.141.59
# networks:
# - ddi_net
# ports:
# - 4444