-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
117 lines (110 loc) · 3.58 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015, 2016, 2017 CERN.
#
# Invenio is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# Invenio is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Invenio; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307, USA.
#
# In applying this license, CERN does not
# waive the privileges and immunities granted to it by virtue of its status
# as an Intergovernmental Organization or submit itself to any jurisdiction.
## Usage: docker-compose up; docker-compose exec web ./populate.sh
## alias invenio='docker-compose exec web invenio'
## invenio --help
## tests: docker-compose exec web ./tests.sh
## debug: echo "FLASK_DEBUG=1" > .env; docker-compose up
# celery:
# restart: "always"
# image: rero/reroils-app:dev
# volumes:
# - /Users/maj/devel/projects/reroils-app:/home/invenio/reroils:cached
# environment:
# - FLASK_DEBUG
# - INVENIO_SEARCH_ELASTIC_HOSTS=elasticsearch
# - INVENIO_SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://reroils:dbpass123@postgresql:5432/reroils
# - INVENIO_CELERY_BROKER_URL=amqp://guest:guest@rabbitmq:5672//
# - INVENIO_CELERY_RESULT_BACKEND=redis://redis:6379/1
# - INVENIO_CACHE_REDIS_URL='redis://redis:6379/1'
# - INVENIO_ACCOUNTS_SESSION_REDIS_URL='redis://redis:6379/0'
# - INVENIO_DB_VERSIONING=0
# links:
# - postgresql
# - redis
# - elasticsearch
# - rabbitmq
# command: ['./celery.sh']
# web:
# restart: "always"
# image: rero/reroils-app:dev
# volumes:
# - /Users/maj/devel/projects/reroils-app:/home/invenio/reroils:cached
# environment:
# - FLASK_DEBUG
# - INVENIO_SEARCH_ELASTIC_HOSTS=elasticsearch
# - INVENIO_SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://reroils:dbpass123@postgresql:5432/reroils
# - INVENIO_CELERY_BROKER_URL=amqp://guest:guest@rabbitmq:5672//
# - INVENIO_CELERY_RESULT_BACKEND=redis://redis:6379/1
# - INVENIO_CACHE_REDIS_URL='redis://redis:6379/1'
# - INVENIO_ACCOUNTS_SESSION_REDIS_URL='redis://redis:6379/0'
# - INVENIO_DB_VERSIONING=0
# links:
# - postgresql
# - redis
# - elasticsearch
# - rabbitmq
# ports:
# - "5000:5000"
# command: ['./start.sh']
postgresql:
restart: "always"
image: postgres
environment:
- POSTGRES_USER=rerodoc
- POSTGRES_DB=rerodoc
- POSTGRES_PASSWORD=rerodoc
ports:
- "15432:5432"
redis:
restart: "always"
image: redis
ports:
- "16379:6379"
volumes:
- /Users/maj/devel/virtualenvs/rerodoc-app/src/rerodoc-app/redis.conf:/usr/local/etc/redis/redis.conf
elasticsearch:
restart: "always"
image: elasticsearch:5.6.7
# image: docker.elastic.co/elasticsearch/elasticsearch:5.6.7
ports:
- "19200:9200"
- "19300:9300"
# command: ['./bin/elasticsearch', '-Expack.security.enabled=false']
# environment:
# - xpack.security.enabled=false
# - xpack.monitoring.enabled=false
rabbitmq:
restart: "always"
image: rabbitmq:3-management
ports:
- "14369:4369"
- "15672:5672"
# - "15672:15672"
kibana:
image: docker.elastic.co/kibana/kibana:5.6.7
ports:
- 15601:5601
links:
- elasticsearch