-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose-build.yml
127 lines (120 loc) · 4.58 KB
/
docker-compose-build.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
124
125
126
127
version: '2'
services:
redis-cache:
image: scieloorg/redis
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:
build:
context: .
args:
- OPAC_BUILD_DATE=${OPAC_BUILD_DATE} # export OPAC_BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"`
- OPAC_VCS_REF=${OPAC_VCS_REF} # export OPAC_VCS_REF=`git rev-parse --short HEAD`
- OPAC_WEBAPP_VERSION=${OPAC_WEBAPP_VERSION} # export OPAC_WEBAPP_VERSION="v0.1.0-dev"
user: nobody
restart: always
hostname: opac_webapp
depends_on:
- opac_mongo
- redis-cache
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data:/app/data
links:
- opac_mongo:opac-mongo
- redis-cache:redis-cache
ports:
- "8000:8000"
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_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_CACHE_ENABLED=False
opac-rq-worker-1:
build:
context: .
args:
- OPAC_BUILD_DATE=${OPAC_BUILD_DATE} # export OPAC_BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"`
- OPAC_VCS_REF=${OPAC_VCS_REF} # export OPAC_VCS_REF=`git rev-parse --short HEAD`
- OPAC_WEBAPP_VERSION=${OPAC_WEBAPP_VERSION} # export OPAC_WEBAPP_VERSION="v0.1.0-dev"
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:
build:
context: .
args:
- OPAC_BUILD_DATE=${OPAC_BUILD_DATE} # export OPAC_BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"`
- OPAC_VCS_REF=${OPAC_VCS_REF} # export OPAC_VCS_REF=`git rev-parse --short HEAD`
- OPAC_WEBAPP_VERSION=${OPAC_WEBAPP_VERSION} # export OPAC_WEBAPP_VERSION="v0.1.0-dev"
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