diff --git a/.env.example b/.env.example index 64cbb6f4f..2df141799 100644 --- a/.env.example +++ b/.env.example @@ -42,4 +42,12 @@ ZENDESK_TICKETING_CLIENT_SECRET= # Webapp settings # Must be set in the perspective of the end user browser VITE_BACKEND_DOMAIN=http://localhost:3000 -VITE_FRONTEND_DOMAIN=http://localhost:81 \ No newline at end of file +VITE_FRONTEND_DOMAIN=http://localhost:81 + +# Minio (s3 storage) +MINIO_ROOT_USER=myaccesskey13 +MINIO_ROOT_PASSWORD=mysecretkey12 + +## S3 Buckets +# Ticketing Attachments bucket +S3_TCG_ATTACHMENTS_BUCKETNAME=tcg-attachments \ No newline at end of file diff --git a/apps/frontend-snippet/src/index.css b/apps/frontend-snippet/src/index.css index dcf480f97..f9b02a22c 100644 --- a/apps/frontend-snippet/src/index.css +++ b/apps/frontend-snippet/src/index.css @@ -33,7 +33,7 @@ body { place-items: center; min-width: 320px; min-height: 100vh; - font-family: "IBM Plex Mono", monospace; + font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; } button { diff --git a/docker-compose.yml b/docker-compose.yml index d986491b9..e25c64b0c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,10 +1,6 @@ name: panora version: '3.8' -networks: - frontend: - backend: - services: postgres: image: postgres:16.1 @@ -91,3 +87,49 @@ services: networks: - backend - frontend + + panora-store: + image: minio/minio + container_name: panora-store + environment: + - MINIO_ROOT_USER=${MINIO_ROOT_USER} + - MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD} + ports: + - "9000:9000" + - "9001:9001" + command: server /data --console-address ":9001" + healthcheck: + test: + - CMD + - curl + - '-f' + - 'http://localhost:9000/minio/health/live' + retries: 5 + interval: 10s + timeout: 5s + volumes: + - pnr-objstr:/data + restart: + unless-stopped + + # Initialize s3 buckets + panora-store-init: + image: minio/minio + entrypoint: [] + command: > + sh -c " + mc alias set panora-store http://panora-store:9000 ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD} && + mc mb panora-store/${S3_TCG_ATTACHMENTS_BUCKETNAME} && + mc ls panora-store + " + depends_on: + - panora-store + volumes: + - pnr-objstr:/data + +networks: + frontend: + backend: + +volumes: + pnr-objstr: \ No newline at end of file