-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
114 lines (106 loc) · 2.69 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
version: '2'
services:
web:
build: .
command: foreman start
#command: foreman start -m web=1,worker=4
ports:
- "5000:5000"
volumes:
- .:/app
links:
- database
- redis
- tika
- elasticsearch
# - nomenklatura
- s3
- mailcatcher
# - sentry
depends_on:
- database
- redis
- s3
environment:
RACK_ENV: development
SIDEKIQ_SERVER_OPEN: "true"
ELASTICSEARCH_URL: http://elasticsearch:9200
REDIS_URL: redis://redis:6379
DATABASE_URL: postgres://kleineanfragen:@database/kleineanfragen
TIKA_SERVER_URL: http://tika:9998
S3_ENDPOINT: http://s3:9000
S3_ACL_SUPPORT: "false"
PAPER_INDEX_BATCH_SIZE: 250
# NOMENKLATURA_HOST: http://nomenklatura:8080
# NOMENKLATURA_APIKEY: change_me
# SENTRY_DSN: http://public:secret@sentry:9000/2
database:
build: contrib/postgres-ka
environment:
POSTGRES_USER: kleineanfragen
ports:
- "5432:5432"
redis:
image: redis
ports:
- "6379:6379"
tika:
image: logicalspark/docker-tikaserver
ports:
- "9998:9998"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
environment:
discovery.type: single-node
xpack.security.enabled: "false"
cluster.routing.allocation.disk.threshold_enabled: "false"
bootstrap.memory_lock: "true"
ES_JAVA_OPTS: "-Xms1024m -Xmx1024m"
ports:
- "9200:9200"
kibana:
image: docker.elastic.co/kibana/kibana:6.3.2
depends_on:
- elasticsearch
links:
- elasticsearch
ports:
- "5601:5601"
#nomenklatura:
# image: robbi5/nomenklatura
# links:
# - database
# depends_on:
# - database
# environment:
# DATABASE_URL: postgres://kleineanfragen:@database/nomenklatura
# SECRET_KEY: change_me
# GITHUB_CLIENT_ID: change_me
# GITHUB_CLIENT_SECRET: change_me
# ports:
# - "8080:8080"
s3:
image: minio/minio:RELEASE.2019-03-27T22-35-21Z
command: server /data
environment:
MINIO_ACCESS_KEY: "AKIAIOSFODNN7EXAMPLE"
MINIO_SECRET_KEY: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
volumes:
- ./tmp/ka-dev:/data
- ./tmp/ka-meta:/root/.minio
ports:
- "9000:9000"
## local sentry to test exceptions notifications
#sentry:
# image: slafs/sentry:7.4
# volumes:
# - ./tmp/sentry:/data
# ports:
# - "9000:9000"
# environment:
# SECRET_KEY: totallysecretdevkey
# SENTRY_URL_PREFIX: http://localhost:9000
# SENTRY_INITIAL_TEAM: kleineanfragen
# SENTRY_INITIAL_PROJECT: kleineanfragen
# SENTRY_INITIAL_PLATFORM: rails4
# SENTRY_INITIAL_KEY: public:secret