-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose-dev.yml
195 lines (188 loc) · 6.95 KB
/
docker-compose-dev.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
version: '2'
services:
redis-cache:
image: scieloorg/redis
container_name: opac_redis_dev
user: redis
restart: always
volumes:
- ./data/redis-cache-data-dev:/data
mailhog:
image: mailhog/mailhog:latest
container_name: opac_mailhog_dev
hostname: mailhog
ports:
- "8025:8025"
opac_mongo:
image: mongo:4.2
container_name: opac_mongo_dev
restart: always
user: mongodb
hostname: opac-mongo
ports:
- "27017:27017"
opac_webapp:
build:
context: .
dockerfile: ./Dockerfile-dev
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"
container_name: opac_webapp_dev
command: gunicorn --worker-class=gevent --worker-connections=1000 --workers 3 --bind 0.0.0.0:8000 app:app --chdir=/app/opac --reload --timeout 1000 --log-level DEBUG
user: nobody
restart: always
hostname: opac_webapp
depends_on:
- opac_mongo
- mailhog
- redis-cache
volumes:
- .:/app
links:
- opac_mongo:opac-mongo
- mailhog:mailhog
- redis-cache:redis-cache
ports:
- "8000:8000"
environment:
- OPAC_DEBUG_MODE=True
- OPAC_LOG_LEVEL=DEBUG
- OPAC_MINIFY_PAGE=False
- OPAC_MONGODB_NAME=opac
- OPAC_MONGODB_HOST=opac_mongo
- OPAC_MONGODB_PORT=27017
- OPAC_DATABASE_DIR=/app/data
- OPAC_MAIL_SERVER=mailhog
- OPAC_MAIL_PORT=1025
- OPAC_SECRET_KEY=s3kr3tk3y
- OPAC_SSM_DOMAIN=minio.scielo.br
- OPAC_SSM_PORT=443
- OPAC_SSM_SCHEME=https
- OPAC_SSM_XML_URL_REWRITE=False
- OPAC_CACHE_ENABLED=False
- 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_USE_SCIENCEOPEN=True
- OPAC_USE_SCITE=True
# novas settings para auditoria
- OPAC_AUDIT_LOG_NOTIFICATION_ENABLED=True
- OPAC_AUDIT_LOG_NOTIFICATION_RECIPIENTS=
- OPAC_RQ_REDIS_HOST=redis-cache
- OPAC_RQ_REDIS_PORT=6379
- OPAC_SERVER_NAME=0.0.0.0:8000
- OPAC_APM_ENABLED=False
- OPAC_APM_SERVER_URL=
- OPAC_APM_SERVICE_NAME=Website
- OPAC_APM_ENVIRONMENT=development
- OPAC_APM_SECRET_TOKEN=
stdin_open: True
tty: true
opac-rq-worker-1:
build:
context: .
dockerfile: ./Dockerfile-dev
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"
container_name: opac_rq_worker
command: /start_worker.sh
user: nobody
restart: always
depends_on:
- opac_mongo
- mailhog
- redis-cache
volumes:
- .:/app
links:
- opac_mongo:opac-mongo
- mailhog:mailhog
- redis-cache:redis-cache
environment:
- OPAC_DEBUG_MODE=True
- OPAC_MONGODB_NAME=opac
- OPAC_MONGODB_HOST=opac_mongo
- OPAC_MONGODB_PORT=27017
- OPAC_DATABASE_DIR=/app/data
- OPAC_MAIL_SERVER=mailhog
- OPAC_MAIL_PORT=1025
- OPAC_SECRET_KEY=s3kr3tk3y
- OPAC_SSM_SCHEME=http
- OPAC_SSM_DOMAIN=172.19.0.1
- OPAC_SSM_PORT=8001
# - OPAC_CACHE_ENABLED=True
# - OPAC_CACHE_DEFAULT_TIMEOUT=3600
# - OPAC_CACHE_REDIS_HOST=redis-cache
# novas settings para auditoria
- OPAC_AUDIT_LOG_NOTIFICATION_ENABLED=True
- OPAC_AUDIT_LOG_NOTIFICATION_RECIPIENTS=
- OPAC_RQ_REDIS_HOST=redis-cache
- OPAC_RQ_REDIS_PORT=6379
- OPAC_SERVER_NAME=0.0.0.0:8000
opac-rq-scheduler:
build:
context: .
dockerfile: ./Dockerfile-dev
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"
container_name: opac_rq_scheduler
command: /start_scheduler.sh
user: nobody
restart: always
depends_on:
- opac_mongo
- mailhog
- redis-cache
volumes:
- .:/app
links:
- opac_mongo:opac-mongo
- mailhog:mailhog
- redis-cache:redis-cache
environment:
- OPAC_DEBUG_MODE=True
- OPAC_MONGODB_NAME=opac
- OPAC_MONGODB_HOST=opac_mongo
- OPAC_MONGODB_PORT=27017
- OPAC_DATABASE_DIR=/app/data
- OPAC_MAIL_SERVER=mailhog
- OPAC_MAIL_PORT=1025
- OPAC_SECRET_KEY=s3kr3tk3y
- OPAC_SSM_SCHEME=http
- OPAC_SSM_DOMAIN=172.19.0.1
- OPAC_SSM_PORT=8001
# - OPAC_CACHE_ENABLED=True
# - OPAC_CACHE_DEFAULT_TIMEOUT=3600
# - OPAC_CACHE_REDIS_HOST=redis-cache
# novas settings para auditoria
- OPAC_AUDIT_LOG_NOTIFICATION_ENABLED=True
- OPAC_AUDIT_LOG_NOTIFICATION_RECIPIENTS=
- OPAC_RQ_REDIS_HOST=redis-cache
- OPAC_RQ_REDIS_PORT=6379
- OPAC_SERVER_NAME=0.0.0.0:8000
minio:
image: 'minio/minio:RELEASE.2024-06-29T01-20-47Z'
container_name: opac_minio
hostname: opac-minio
ports:
- '9000:9000'
- '9001:9001'
environment:
- MINIO_ROOT_USER=minio
- MINIO_ROOT_PASSWORD=minio123
volumes:
- '../minio/data:/data'
command: server --console-address ":9001" /data