Skip to content

Commit

Permalink
Remove .env ref in docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
AmelieLoulergue committed Nov 20, 2024
1 parent 959221b commit de3bc86
Showing 1 changed file with 49 additions and 2 deletions.
51 changes: 49 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit de3bc86

Please sign in to comment.