Feat: Actualizar homepage con branding RioCata y ajustar configuración
Some checks failed
build-and-deploy / build-and-deploy (push) Failing after 2m16s
Some checks failed
build-and-deploy / build-and-deploy (push) Failing after 2m16s
This commit is contained in:
@@ -1,10 +1,33 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
container_name: ${APP_NAME}_postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- POSTGRES_DB=${POSTGRES_DB:-riocata}
|
||||
- POSTGRES_USER=${POSTGRES_USER:-riocata_user}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- PGDATA=/var/lib/postgresql/data/pgdata
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- ./postgres/init:/docker-entrypoint-initdb.d:ro
|
||||
networks:
|
||||
- principal
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-riocata_user} -d ${POSTGRES_DB:-riocata}"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
app:
|
||||
image: ${REG}/${REPO_OWNER}/${APP_NAME}:latest
|
||||
container_name: ${APP_NAME}
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
# Node Environment
|
||||
- NODE_ENV=production
|
||||
@@ -12,6 +35,13 @@ services:
|
||||
- NUXT_PORT=3000
|
||||
# Public URL
|
||||
- NUXT_PUBLIC_APP_URL=${NUXT_PUBLIC_APP_URL}
|
||||
# Database Connection
|
||||
- DATABASE_URL=postgresql://${POSTGRES_USER:-riocata_user}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-riocata}
|
||||
- POSTGRES_HOST=postgres
|
||||
- POSTGRES_PORT=5432
|
||||
- POSTGRES_DB=${POSTGRES_DB:-riocata}
|
||||
- POSTGRES_USER=${POSTGRES_USER:-riocata_user}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
networks:
|
||||
- principal
|
||||
- traefik-network
|
||||
@@ -48,6 +78,10 @@ services:
|
||||
- "traefik.http.middlewares.${APP_NAME}-cors.headers.accesscontrolmaxage=100"
|
||||
- "traefik.http.middlewares.${APP_NAME}-cors.headers.addvaryheader=true"
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
name: ${APP_NAME}_postgres_data
|
||||
|
||||
networks:
|
||||
principal:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user