Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sp\Minio Service Declaration #154

Merged
merged 3 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.7.8
current_version = 0.7.9

commit = True
tag = True
Expand Down
2 changes: 1 addition & 1 deletion src/plextrac
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -Eeuo pipefail

VERSION=0.7.8
VERSION=0.7.9

## Podman Global Declaration Variable
declare -A svcValues
Expand Down
42 changes: 42 additions & 0 deletions static/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ services:
- postgres
environment:
STARTUP_MODE: API_ONLY
CLOUD_STORAGE_ENDPOINT: ${CLOUD_STORAGE_ENDPOINT:-minio}
CLOUD_STORAGE_SSL: ${CLOUD_STORAGE_SSL:-false}
env_file:
- .env
image: "plextrac/plextracapi:${UPGRADE_STRATEGY:-stable}"
Expand Down Expand Up @@ -123,6 +125,10 @@ services:
USE_CUSTOM_CERT: "${USE_CUSTOM_CERT-}"
CKEDITOR_MIGRATE: "${CKEDITOR_MIGRATE:-}"
WAF_ENABLED: "${WAF_ENABLED:-true}"
UPSTREAM_CLOUD_BUCKET: ${UPSTREAM_CLOUD_BUCKET:-cloud}
UPSTREAM_CLOUD_PREFIX: ${UPSTREAM_CLOUD_PREFIX:-uploads}
MINIO_ENABLED : ${MINIO_ENABLED:-true}
UPSTREAM_CLOUD_HOST: ${UPSTREAM_CLOUD_HOST:-minio}
ports:
- 0.0.0.0:80:80/tcp
- 0.0.0.0:443:443/tcp
Expand Down Expand Up @@ -335,12 +341,48 @@ services:
- "--no-update-notifier"
entrypoint: npm run
command: "start:contextual-scoring-service"

minio:
ports:
- 9000:9000
- 9001:9001
image: chainguard/minio:latest
restart: always
volumes:
- minio-data:/data
entrypoint: minio
command: server /data --console-address ':9001' --address '0.0.0.0:9000'
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-admin}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:?err}
MINIO_LOCAL_USER: ${MINIO_LOCAL_USER:-localadmin}
MINIO_LOCAL_PASSWORD: ${MINIO_LOCAL_PASSWORD:?err}
CLOUD_STORAGE_ENDPOINT: ${CLOUD_STORAGE_ENDPOINT:-127.0.0.1}
CLOUD_STORAGE_PORT: ${CLOUD_STORAGE_PORT:-9000}
CLOUD_STORAGE_SSL: ${CLOUD_STORAGE_SSL:-false}
CLOUD_STORAGE_ACCESS_KEY: ${CLOUD_STORAGE_ACCESS_KEY:?err}
CLOUD_STORAGE_SECRET_KEY: ${CLOUD_STORAGE_SECRET_KEY:?err}
minio-bootstrap:
image: plextrac/plextrac-minio-bootstrap:stable
depends_on:
- minio
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-admin}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:?err}
MINIO_LOCAL_USER: ${MINIO_LOCAL_USER:-localadmin}
MINIO_LOCAL_PASSWORD: ${MINIO_LOCAL_PASSWORD:?err}
CLOUD_STORAGE_ACCESS_KEY: ${CLOUD_STORAGE_ACCESS_KEY:?err}
CLOUD_STORAGE_SECRET_KEY: ${CLOUD_STORAGE_SECRET_KEY:?err}
MINIO_ENABLED : ${MINIO_ENABLED:-true}
UPSTREAM_CLOUD_BUCKET: ${UPSTREAM_CLOUD_BUCKET:-cloud}


volumes:
dbdata: {}
uploads: {}
letsencrypt: {}
localesOverride: {}
minio-data: {}
postgres-data: {}
postgres-initdb:
driver: local
Expand Down