From de3bc8636474cf04d3bc4b39d59ef9ffc1eb2d6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Am=C3=A9lie=20Loulergue?= Date: Wed, 20 Nov 2024 11:09:31 +0100 Subject: [PATCH] Remove .env ref in docker compose --- docker-compose.yml | 51 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8e2d9ce..e8e3dad 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,54 @@ x-environment-variables: &default-environment API_PREFIX: "/palpatine" + DELEGATED_STORAGE_RATE_LIMIT: 5 + DELEGATED_STORAGE_RATE_LIMIT_WINDOW: 30000 + THUMBOR_SERVICE: http://localhost:8888 + NGINX_SERVICE: http://host.docker.internal:8080 + IMAGE_SERVICE: http://localhost:3001 + NGINX_INGRESS: http://localhost:8080 + + VERSION: 0.0.1 + NAMESPACES: CMS,FORMS,DEV + VALID_MIMETYPES: image/png,image/jpeg,application/pdf,image/jpg,image/webp,image/svg+xml + + DEV_ENV: true + + # GLOUTON API: + # DELEGATED_STORAGE_HOST: http://host.docker.internal:3002 + # DELEGATED_STORAGE_READINESS_CHECK: /readiness-check + # DELEGATED_STORAGE_GET_PATH: + # DELEGATED_STORAGE_POST_PATH: + # DELEGATED_STORAGE_PUT_PATH: + # DELEGATED_STORAGE_DELETE_PATH: + # DELEGATED_STORAGE_TOKEN: NinjaDesIles + + # S3 BACKUP : + DELEGATED_STORAGE_READINESS_CHECK: /minio/health/live + DELEGATED_STORAGE_HOST: http://localhost:9000 + + DELEGATED_STORAGE_METHOD: S3 + + S3_ENDPOINT: localhost + S3_PORT: 9000 + S3_ACCESS_KEY: minioadmin + S3_SECRET_KEY: minioadmin + S3_BUCKET_NAME: media + + DUMP_FOLDER_PATH: /dumps + REDIS_SERVICE: localhost + + HEALTHCHECK_ROUTE: /readiness-check + + PAYLOAD_MAX_SIZE: "10mb" + BASE_TIMEOUT_MS: 1000 + + ORIGINS_ALLOWED: localhost,* + METHODS_ALLOWED: GET,POST + + USE_STRIPMETADATA: true + TMP_FILES_PATH: './images' + services: redis: @@ -96,9 +144,8 @@ services: depends_on: images-provider: condition: service_healthy - env_file: - - ./src/api/.env environment: + <<: *default-environment IMAGE_SERVICE: http://images-provider:3001 API_SERVICE: http://images-provider:3001 API_PREFIX: /palpatine