fix: empêcher build sans MINIO_ROOT_PASSWORD

Aussi donner une valeur par défaut `agecemorg` à MINIO_ROOT_USER
This commit is contained in:
Victor Lacasse-Beaudoin 2024-08-21 13:01:32 -04:00
parent 835eed54d0
commit e1ceddca07

View file

@ -3,8 +3,8 @@ services:
image: 'quay.io/minio/minio:latest'
restart: 'unless-stopped'
environment:
MINIO_ROOT_USER: "${MINIO_ROOT_USER}"
MINIO_ROOT_PASSWORD: "${MINIO_ROOT_PASSWORD}"
MINIO_ROOT_USER: "${MINIO_ROOT_USER:-agecemorg}"
MINIO_ROOT_PASSWORD: "${MINIO_ROOT_PASSWORD:?MINIO_ROOT_PASSWORD requis dans .env}"
volumes:
- 'minio-data:/data'
command: 'server /data --console-address ":9001"'
@ -15,8 +15,8 @@ services:
build: .
image: 'git.agecem.com/agecem/agecem-org:latest'
environment:
AGECEM_ORG_SERVER_DOCUMENTS_ACCESS_KEY_ID: "${MINIO_ROOT_USER}"
AGECEM_ORG_SERVER_DOCUMENTS_SECRET_ACCESS_KEY: "${MINIO_ROOT_PASSWORD}"
AGECEM_ORG_SERVER_DOCUMENTS_ACCESS_KEY_ID: "${MINIO_ROOT_USER:-agecemorg}"
AGECEM_ORG_SERVER_DOCUMENTS_SECRET_ACCESS_KEY: "${MINIO_ROOT_PASSWORD:?MINIO_ROOT_PASSWORD requis dans .env}"
ports:
- '8080:8080'
volumes: