Initial commit - Prode Mundial 2026
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres:16-alpine
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_USER: ${POSTGRES_USER:-prode}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-prode_secret}
|
||||
POSTGRES_DB: ${POSTGRES_DB:-prode_db}
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-prode}"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
app:
|
||||
build:
|
||||
context: ./app
|
||||
dockerfile: Dockerfile
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
DATABASE_URL: postgresql://${POSTGRES_USER:-prode}:${POSTGRES_PASSWORD:-prode_secret}@db:5432/${POSTGRES_DB:-prode_db}
|
||||
JWT_SECRET: ${JWT_SECRET:-cambia_este_secret_en_produccion}
|
||||
RESULTS_API_URL: ${RESULTS_API_URL:-}
|
||||
RESULTS_API_KEY: ${RESULTS_API_KEY:-}
|
||||
ADMIN_SYNC_SECRET: ${ADMIN_SYNC_SECRET:-sync_secret_cambialo}
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
Reference in New Issue
Block a user