-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.localdev.yaml
127 lines (115 loc) · 3.05 KB
/
docker-compose.localdev.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
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
118
119
120
121
122
123
124
125
126
127
version: '3.5'
services:
olahds_backend:
#labels:
# kompose.image-pull-policy: Always
#volumes:
ports:
- "8080:8080"
environment:
- OLA_HD_MIN_MEMORY=6G
- OLA_HD_MAX_MEMORY=6G
- OLA_HD_EXTERNAL_PORT=8080
- OLA_HD_PORT=8080
olahds_indexer:
#labels:
# kompose.image-pull-policy: Always
volumes:
- ./cfg/localdev/app.env:/etc/env/app.env
- ./cfg/localdev/app-static.env:/etc/env/app-static.env
- ./cfg/localdev/commons.env:/etc/env/commons.env
- ./cfg/localdev/commons-static.env:/etc/env/commons-static.env
- ./cfg/localdev/iiif.env:/etc/env/iiif.env
olahds_web_notifier:
#labels:
# kompose.image-pull-policy: Always
volumes:
- ./cfg/localdev/app.env:/etc/env/app.env
- ./cfg/localdev/app-static.env:/etc/env/app-static.env
- ./cfg/localdev/commons.env:/etc/env/commons.env
- ./cfg/localdev/commons-static.env:/etc/env/commons-static.env
- ./cfg/localdev/iiif.env:/etc/env/iiif.env
networks:
olahd:
aliases:
- web
olahds_mongo:
image: mongo:4.0.10
container_name: olahds_mongo
command: mongod
ports:
- "27017:27017"
env_file: .env
volumes:
- ~/olahd-data/mongodb-data-local:/data/db
- ./docker/mongodb/config/mongodb-setup.js:/setup/mongodb-setup.js
networks:
olahd:
aliases:
- mongo
environment:
# provide your credentials here
MONGO_INITDB_ROOT_USERNAME: test
MONGO_INITDB_ROOT_PASSWORD: testtest
MONGO_INITDB_DATABASE: admin
olahds_redis:
image: redis:6-alpine
command: redis-server --appendonly yes
container_name: olahds_redis
restart: on-failure
#labels:
# build.context: docker.gitlab.gwdg.de/subugoe/olahd_backend/
ports:
- "8442:6379"
volumes:
- redisdata:/data/
networks:
olahd:
aliases:
- redis
olahds_search:
build:
context: ./docker/search
container_name: olahds_search
#labels:
# build.context: docker.gitlab.gwdg.de/subugoe/olahd_backend/
#command: tail -f /dev/null
volumes:
- ./docker/search/config/stopwords.txt:/usr/share/elasticsearch/config/stopwords.txt:ro
- es_data:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
healthcheck:
test: ["CMD", "wget", "-q", "-O", "-", "http://localhost:9200/_cat/health"]
interval: 30s
timeout: 60s
retries: 300
deploy:
resources:
limits:
memory: 8GB
networks:
olahd:
aliases:
- es
- search
olahds_s3:
container_name: olahds_s3
image: quay.io/minio/minio
entrypoint: sh
command: -c 'mkdir -p /data/olahds && minio server /data --console-address ":9001"'
ports:
- "9000:9000"
- "9001:9001"
volumes:
- ~/olahd-data/s3_data:/data
networks:
olahd:
aliases:
- olahds_s3
- s3
volumes:
redisdata:
# TODO has to be chanched to container external storage
es_data: