-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml.example
94 lines (87 loc) · 2.52 KB
/
docker-compose.yml.example
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
version: '3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.9.1
restart: always
environment:
- discovery.type=single-node
- xpack.security.enabled=false
volumes:
- indexes:/usr/share/elasticsearch/data
networks:
- back-tier
redis:
image: redis:7-alpine
restart: always
volumes:
- redis-persistance:/data
networks:
- back-tier
image:
image: image:latest # An image build based on https://github.com/archival-IIIF/image-server-core
command: -r /data
restart: always
volumes:
- data:/data
networks:
- back-tier
worker:
build: .
restart: always
environment:
- NODE_ENV=production
- IIIF_SERVER_SERVICES=text-index,waveform
- IIIF_SERVER_SECRET=secret
- IIIF_SERVER_ACCESS_TOKEN=secret
- IIIF_SERVER_IMAGE_SERVER_URL=http://image:3333
- IIIF_SERVER_IMAGE_SERVER_NAME=sharp
- IIIF_SERVER_IMAGE_TIER_SEPARATOR=__
- IIIF_SERVER_ATTRIBUTION="Provided by"
- IIIF_SERVER_BASE_URL=http://localhost:3333
- IIIF_SERVER_DATA_ROOT_PATH=/data
- IIIF_SERVER_COLLECTIONS_REL_PATH=collections
- IIIF_SERVER_DERIVATIVE_REL_PATH=data
- IIIF_SERVER_ELASTICSEARCH_URL=http://elasticsearch:9200
- IIIF_SERVER_REDIS_VOLATILE_ENABLED=true
- IIIF_SERVER_REDIS_VOLATILE_HOST=redis
- IIIF_SERVER_REDIS_PERSIST_ENABLED=true
- IIIF_SERVER_REDIS_PERSIST_HOST=redis
volumes:
- data:/data
networks:
- back-tier
web:
build: .
restart: always
environment:
- NODE_ENV=production
- IIIF_SERVER_SERVICES=web
- IIIF_SERVER_SECRET=secret
- IIIF_SERVER_ACCESS_TOKEN=secret
- IIIF_SERVER_IMAGE_SERVER_URL=http://image:3333
- IIIF_SERVER_IMAGE_SERVER_NAME=sharp
- IIIF_SERVER_IMAGE_TIER_SEPARATOR=__
- IIIF_SERVER_ATTRIBUTION="Provided by"
- IIIF_SERVER_BASE_URL=http://localhost:3333
- IIIF_SERVER_DATA_ROOT_PATH=/data
- IIIF_SERVER_COLLECTIONS_REL_PATH=collections
- IIIF_SERVER_DERIVATIVE_REL_PATH=data
- IIIF_SERVER_ELASTICSEARCH_URL=http://elasticsearch:9200
- IIIF_SERVER_REDIS_VOLATILE_ENABLED=true
- IIIF_SERVER_REDIS_VOLATILE_HOST=redis
- IIIF_SERVER_REDIS_PERSIST_ENABLED=true
- IIIF_SERVER_REDIS_PERSIST_HOST=redis
ports:
- "3333:3333"
volumes:
- data:/data
networks:
- front-tier
- back-tier
volumes:
data:
indexes:
redis-persistance:
networks:
front-tier:
back-tier: