From 898305f1ac2a1dd96946ee4bb9e0973cf921e8ab Mon Sep 17 00:00:00 2001 From: GitInno <86991526+gitnnolabs@users.noreply.github.com> Date: Mon, 15 Jan 2024 13:15:02 -0300 Subject: [PATCH 1/2] =?UTF-8?q?Adiciona=20o=20minio=20no=20arquivo=20de=20?= =?UTF-8?q?produ=C3=A7=C3=A3o=20do=20docker-compose.yml.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/minio/.gitkeep | 0 docker-compose.yml | 12 ++++++++++++ 2 files changed, 12 insertions(+) create mode 100644 data/minio/.gitkeep diff --git a/data/minio/.gitkeep b/data/minio/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/docker-compose.yml b/docker-compose.yml index d5c97f7d..34c135d7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -67,6 +67,18 @@ services: - OPAC_APM_ENVIRONMENT=production - OPAC_APM_SECRET_TOKEN= + minio: + image: 'bitnami/minio:latest' + container_name: opac_minio_prod + ports: + - '9000:9000' + - '9001:9001' + environment: + - MINIO_ROOT_USER=minio + - MINIO_ROOT_PASSWORD=minio123 + volumes: + - './data/minio:/bitnami/minio/data' + opac-rq-worker-1: image: scieloorg/opac container_name: opac_rq_worker_prod From 4ccb2a4540ec290a957c25e8e0d2a84c925dd96a Mon Sep 17 00:00:00 2001 From: GitInno <86991526+gitnnolabs@users.noreply.github.com> Date: Mon, 15 Jan 2024 19:06:08 -0300 Subject: [PATCH 2/2] =?UTF-8?q?Realiza=20ajustes=20no=20arquivo=20de=20com?= =?UTF-8?q?pose=20para=20o=20ambiente=20de=20produ=C3=A7=C3=A3o.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/db/.gitkeep | 0 docker-compose.yml | 24 +++++++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) create mode 100644 data/db/.gitkeep diff --git a/data/db/.gitkeep b/data/db/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/docker-compose.yml b/docker-compose.yml index 34c135d7..06b20950 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,19 +8,19 @@ services: user: redis restart: always volumes: - - ./data/redis-cache-data-dev:/data - - /etc/localtime:/etc/localtime:ro + - ./data/redis-cache-data-dev:/data + - /etc/localtime:/etc/localtime:ro opac_mongo: image: mongo:4.2 - container_name: opac_mailhog_prod + container_name: opac_mongo_prod restart: always user: mongodb hostname: opac-mongo ports: - - "27017:27017" + - "27017:27017" volumes: - - /etc/localtime:/etc/localtime:ro + - ./data/db:/data/db:rw opac_webapp: image: scieloorg/opac @@ -38,16 +38,17 @@ services: links: - opac_mongo:opac-mongo - redis-cache:redis-cache + - minio:opac-minio ports: - "8000:8000" environment: - OPAC_DEBUG_MODE=True - OPAC_LOG_LEVEL=WARNING - OPAC_MINIFY_PAGE=False - - OPAC_MONGODB_NAME=opac_mongo + - OPAC_MONGODB_NAME=opac - OPAC_DATABASE_DIR=/app/data - OPAC_SECRET_KEY=s3kr3tk3y - - OPAC_MONGODB_HOST=opac-mongo + - OPAC_MONGODB_HOST=opac_mongo - OPAC_CACHE_ENABLED=True - OPAC_CACHE_DEFAULT_TIMEOUT=3600 - OPAC_CACHE_REDIS_HOST=redis-cache @@ -66,10 +67,15 @@ services: - OPAC_APM_SERVICE_NAME=Website - OPAC_APM_ENVIRONMENT=production - OPAC_APM_SECRET_TOKEN= + - OPAC_SSM_SCHEME=http + - OPAC_SSM_DOMAIN=minio + - OPAC_SSM_PORT=9000 + minio: image: 'bitnami/minio:latest' container_name: opac_minio_prod + hostname: opac-minio ports: - '9000:9000' - '9001:9001' @@ -96,7 +102,7 @@ services: - redis-cache:redis-cache environment: - OPAC_DEBUG_MODE=True - - OPAC_MONGODB_NAME=opac_mongo + - OPAC_MONGODB_NAME=opac - OPAC_DATABASE_DIR=/app/data - OPAC_SECRET_KEY=s3kr3tk3y - OPAC_MONGODB_HOST=opac-mongo @@ -126,7 +132,7 @@ services: - redis-cache:redis-cache environment: - OPAC_DEBUG_MODE=True - - OPAC_MONGODB_NAME=opac_mongo + - OPAC_MONGODB_NAME=opac - OPAC_DATABASE_DIR=/app/data - OPAC_SECRET_KEY=s3kr3tk3y - OPAC_MONGODB_HOST=opac-mongo