forked from scieloorg/opac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
123 lines (117 loc) · 4.01 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
118
119
120
121
122
123
version: '2'
services:
redis-cache:
image: redis:alpine
user: redis
restart: always
volumes:
- ./data/redis-cache-data-dev:/data
- /etc/localtime:/etc/localtime:ro
opac_mongo:
image: mongo:4.2
restart: always
user: mongodb
hostname: opac-mongo
ports:
- "27017:27017"
volumes:
- /etc/localtime:/etc/localtime:ro
opac_webapp:
image: scieloorg/opac
user: nobody
restart: always
hostname: opac_webapp
depends_on:
- opac_mongo
- redis-cache
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data:/app/data
- ./data/img:/app/data/img
links:
- opac_mongo:opac-mongo
- redis-cache:redis-cache
ports:
- "8000:8000"
environment:
- OPAC_DEBUG_MODE=True
- OPAC_LOG_LEVEL=WARNING
- OPAC_MINIFY_PAGE=False
- OPAC_MONGODB_NAME=opac_mongo
- OPAC_DATABASE_DIR=/app/data
- OPAC_SECRET_KEY=s3kr3tk3y
- OPAC_MONGODB_HOST=opac-mongo
- OPAC_CACHE_ENABLED=True
- OPAC_CACHE_DEFAULT_TIMEOUT=3600
- OPAC_CACHE_REDIS_HOST=redis-cache
- OPAC_USE_METRICS=True
- OPAC_METRICS_URL=http://analytics.scielo.org
- OPAC_USE_DIMENSIONS=True
- OPAC_DIMENSIONS_URL=https://badge.dimensions.ai/details/doi
- OPAC_USE_PLUMX=True
- OPAC_PLUMX_METRICS_URL=https://plu.mx/scielo/a
- OPAC_USE_ALTMETRIC=True
- OPAC_ALTMETRIC_METRICS_URL=https://www.altmetric.com/details.php
- OPAC_JOURNAL_PAGES_SOURCE_PATH=/app/data/pages
- OPAC_JOURNAL_IMAGES_SOURCE_PATH=/app/data/img
- OPAC_APM_ENABLED=False
- OPAC_APM_SERVER_URL=
- OPAC_APM_SERVICE_NAME=Website
- OPAC_APM_ENVIRONMENT=production
- OPAC_APM_SECRET_TOKEN=
opac-rq-worker-1:
image: scieloorg/opac
command: /app/start_worker.sh
user: nobody
restart: always
depends_on:
- opac_mongo
- redis-cache
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data:/app/data
links:
- opac_mongo:opac-mongo
- redis-cache:redis-cache
environment:
- OPAC_DEBUG_MODE=True
- OPAC_MONGODB_NAME=opac_mongo
- OPAC_DATABASE_DIR=/app/data
- OPAC_SECRET_KEY=s3kr3tk3y
- OPAC_MONGODB_HOST=opac-mongo
- OPAC_CACHE_ENABLED=True
- OPAC_CACHE_DEFAULT_TIMEOUT=3600
- OPAC_CACHE_REDIS_HOST=redis-cache
- OPAC_SERVER_NAME=opac.scielo.org
- OPAC_AUDIT_LOG_NOTIFICATION_ENABLED=True
- OPAC_RQ_REDIS_HOST=redis-cache
- OPAC_RQ_REDIS_PORT=6379
opac-rq-scheduler:
image: scieloorg/opac
command: /app/start_scheduler.sh
user: nobody
restart: always
depends_on:
- opac_mongo
- redis-cache
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data:/app/data
links:
- opac_mongo:opac-mongo
- redis-cache:redis-cache
environment:
- OPAC_DEBUG_MODE=True
- OPAC_MONGODB_NAME=opac_mongo
- OPAC_DATABASE_DIR=/app/data
- OPAC_SECRET_KEY=s3kr3tk3y
- OPAC_MONGODB_HOST=opac-mongo
- OPAC_CACHE_ENABLED=True
- OPAC_CACHE_DEFAULT_TIMEOUT=3600
- OPAC_CACHE_REDIS_HOST=redis-cache
- OPAC_SERVER_NAME=opac.scielo.org
- OPAC_AUDIT_LOG_NOTIFICATION_ENABLED=True
- OPAC_RQ_REDIS_HOST=redis-cache
- OPAC_RQ_REDIS_PORT=6379