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