Skip to content

Commit dffe4e4

Browse files
Update README.md
1 parent c1f71e3 commit dffe4e4

File tree

1 file changed

+60
-19
lines changed

1 file changed

+60
-19
lines changed

README.md

Lines changed: 60 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -220,23 +220,64 @@ Aquí tienes un ejemplo práctico con valores de ejemplo que puedes ajustar seg
220220

221221
```bash
222222
docker run -d --name smartpot-api-dev -p 8091:8091 \
223-
-e APP_NAME=SmartPot-API \
224-
-e PORT=8091 \
225-
-e TITLE="SmartPot API" \
226-
-e DESCRIPTION="Documentación de la API REST de SmartPot" \
227-
-e VERSION=1.0.0 \
228-
-e AUTHOR="SmartPot Developers" \
229-
-e DATA_SOURCE_USERNAME=SmartPot-Admin \
230-
-e DATA_SOURCE_PASSWORD=SecurePassword123 \
231-
-e DATA_SOURCE_DOMAIN=smartpot.example.mongodb.net \
232-
-e DATA_SOURCE_DB=smartpot \
233-
-e DATA_SOURCE_RETRY_WRITES=true \
234-
-e DATA_SOURCE_W=majority \
235-
-e DATA_SOURCE_APP_NAME=smartpot-app \
236-
-e SECURITY_JWT_SECRET_KEY=SuperSecretKey \
237-
-e SECURITY_JWT_EXPIRATION=300000 \
238-
-e SECURITY_PUBLIC_ROUTES="/auth/login" \
239-
-e HEADER_CORS_ALLOWED_ORIGINS=http://localhost:5173 \
240-
-e DEBUGGER_MODE=INFO \
241-
sebastian190030/api-smartpot:latest
223+
-e APP_NAME=SmartPot-API \
224+
-e PORT=8091 \
225+
-e TITLE="SmartPot API" \
226+
-e DESCRIPTION="Documentación de la API REST de SmartPot" \
227+
-e VERSION=1.0.0 \
228+
-e AUTHOR="SmartPot Developers" \
229+
\
230+
# MongoDB
231+
-e DATA_CONNECTION_METHOD=mongodb \
232+
-e DATA_SOURCE_USERNAME=admin \
233+
-e DATA_SOURCE_PASSWORD=admin \
234+
-e DATA_SOURCE_DOMAIN=db-smartpot:27017 \
235+
-e DATA_SOURCE_DB=smartpot \
236+
-e DATA_PARAMS="authSource=admin&directConnection=true&serverSelectionTimeoutMS=100000&socketTimeoutMS=10000&appName=mongo" \
237+
\
238+
# Redis
239+
-e CACHE_TYPE=redis \
240+
-e CACHE_HOST=cache-smartpot \
241+
-e CACHE_PORT=6379 \
242+
-e CACHE_DB=0 \
243+
-e CACHE_USERNAME=default \
244+
-e CACHE_PASSWORD=root \
245+
-e CACHE_TIMEOUT=2000 \
246+
-e CACHE_LETTUCE_POOL_MAX_ACTIVE=8 \
247+
-e CACHE_LETTUCE_POOL_MAX_WAIT=-1 \
248+
-e CACHE_LETTUCE_POOL_MAX_IDLE=8 \
249+
-e CACHE_LETTUCE_POOL_MIN_IDLE=8 \
250+
\
251+
# Config cache
252+
-e CACHE_TIME_TO_LIVE=300000 \
253+
-e CACHE_NULL_VALUES=false \
254+
\
255+
# Email (Mailpit local)
256+
-e MAIL_HOST=mail-smartpot \
257+
-e MAIL_PORT=1025 \
258+
-e MAIL_USERNAME=smartpotadmin@example.com \
259+
-e MAIL_PASSWORD=password123 \
260+
-e MAIL_PROPERTIES_SMTP_AUTH=true \
261+
-e MAIL_PROPERTIES_SMTP_STARTTLS_ENABLE=false \
262+
\
263+
# Seguridad
264+
-e SECURITY_JWT_SECRET_KEY=c8e9b6803afbcfa6edd9569c94c75ff4b144622b0a0570a636dffd62c24a3476 \
265+
-e SECURITY_JWT_EXPIRATION=86400000 \
266+
-e SECURITY_PUBLIC_ROUTES="/auth/login,/auth/verify" \
267+
\
268+
# Rate limiting
269+
-e RATE_LIMITING_MAX_REQUESTS=5 \
270+
-e RATE_LIMITING_TIME_WINDOW=60000 \
271+
-e RATE_LIMITING_PUBLIC_ROUTES="/swagger-ui/,/v3/api-docs,/swagger-resources/,/webjars/" \
272+
\
273+
# Headers
274+
-e HEADER_CORS_ALLOWED_ORIGINS=http://localhost:5173 \
275+
\
276+
# Tomcat
277+
-e SERVER_TOMCAT_TIMEOUT=600000 \
278+
\
279+
# Debugger
280+
-e DEBUGGER_MODE=INFO \
281+
sebastian190030/api-smartpot:latest
282+
242283
```

0 commit comments

Comments
 (0)