chore: auto-commit (4 archivos)
- .gitignore - CAPABILITIES_TODO.md - CHROMIUM_SYSTEM.md - hoppscotch/ Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# Generado 2026-06-10T20:27:47Z. Secretos reales — NO versionar (ver .gitignore).
|
||||
DATABASE_URL=postgresql://postgres:<password>@db:5432/hoppscotch?connect_timeout=300
|
||||
POSTGRES_PASSWORD=<genera-con-openssl-rand-hex-16>
|
||||
DATA_ENCRYPTION_KEY=<32-chars-openssl-rand-hex-16>
|
||||
WHITELISTED_ORIGINS=http://localhost:3170,http://localhost:3009,http://localhost:3100,app://localhost_3200,app://hoppscotch
|
||||
PROXY_APP_URL=https://proxy.hoppscotch.io
|
||||
TRUST_PROXY=false
|
||||
VITE_BASE_URL=http://localhost:3009
|
||||
VITE_SHORTCODE_BASE_URL=http://localhost:3009
|
||||
VITE_ADMIN_URL=http://localhost:3100
|
||||
VITE_BACKEND_GQL_URL=http://localhost:3170/graphql
|
||||
VITE_BACKEND_WS_URL=ws://localhost:3170/graphql
|
||||
VITE_BACKEND_API_URL=http://localhost:3170/v1
|
||||
ENABLE_SUBPATH_BASED_ACCESS=false
|
||||
@@ -0,0 +1,7 @@
|
||||
# El .env lleva secretos (DATA_ENCRYPTION_KEY, POSTGRES_PASSWORD) → nunca se versiona.
|
||||
# Solo viaja la plantilla .env.example.
|
||||
.env
|
||||
|
||||
# Archivos oficiales descargados como referencia (no son nuestra config).
|
||||
.env.example.upstream
|
||||
docker-compose.upstream.yml
|
||||
@@ -0,0 +1,60 @@
|
||||
# Hoppscotch self-hosted (Community Edition) — stack local para trabajar en conjunto.
|
||||
#
|
||||
# Arquitectura: imagen all-in-one pre-built (app 3000 + admin 3100 + backend GraphQL 3170
|
||||
# + bundle 3200) + Postgres 15 + Mailpit (captura el magic link del login, sin OAuth externo
|
||||
# ni SMTP real). Todo escucha solo en 127.0.0.1 (no se expone a la red).
|
||||
#
|
||||
# El puerto 3000 del host está ocupado por otro proceso, así que la app se publica en 3009.
|
||||
# Las VITE_* del .env quedan coherentes con ese remapeo (el AIO las inyecta en runtime).
|
||||
#
|
||||
# Levantar: docker compose up -d
|
||||
# Logs: docker compose logs -f hopp_aio
|
||||
# Parar: docker compose down (los datos persisten en el volumen hopp_pgdata)
|
||||
# Reset total: docker compose down -v (BORRA la base de datos)
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres:15
|
||||
container_name: hopp_db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
POSTGRES_DB: hoppscotch
|
||||
volumes:
|
||||
- hopp_pgdata:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "127.0.0.1:5432:5432"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres -d hoppscotch"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 20
|
||||
|
||||
# Mailpit: servidor SMTP de pruebas. Recibe el correo del magic link en el SMTP interno
|
||||
# (mail:1025) y lo expone en una API/UI web (127.0.0.1:8025) desde donde se lee el enlace.
|
||||
mail:
|
||||
image: axllent/mailpit:latest
|
||||
container_name: hopp_mail
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "127.0.0.1:8025:8025" # UI + API REST de Mailpit
|
||||
# SMTP en el puerto interno 1025, accesible por la red de docker como mail:1025
|
||||
|
||||
aio:
|
||||
image: hoppscotch/hoppscotch:2026.5.0
|
||||
container_name: hopp_aio
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- ./.env
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- "127.0.0.1:3009:3000" # app web (3000 del host está ocupado)
|
||||
- "127.0.0.1:3100:3100" # admin dashboard
|
||||
- "127.0.0.1:3170:3170" # backend: GraphQL /graphql, REST /v1
|
||||
- "127.0.0.1:3200:3200" # bundle server
|
||||
|
||||
volumes:
|
||||
hopp_pgdata:
|
||||
Reference in New Issue
Block a user