33800 Docs

← Retour

Proposition : Initialisation configuration hellocar

Date : 08-12-2024 Projet : hellocar Statut : ✅ En cours d'exécution


Objectif

Créer la configuration de déploiement pour le projet hellocar (monorepo avec 3 services).


Actions à réaliser

1. Créer les fichiers secrets globaux ✅ FAIT

Fichier : /mnt/stock_36to/data/docker/secrets/prod.env Fichier : /mnt/stock_36to/data/docker/secrets/dev.env

# Supabase (même instance pour PROD et DEV pour l'instant)
SUPABASE_URL=https://hellocar-api.33800.nowhere84.com
SUPABASE_SERVICE_ROLE_KEY=eyJ...

# Timezone
TZ=Europe/Paris

2. Vérifier les branches du repo ✅ FAIT

3. Créer les fichiers de configuration

Sur branche main : conf.prod.gouroubleu.yml Sur branche develop : conf.dev.gouroubleu.yml

name: "hellocar"

services:
  - name: "hellocar-api"
    type: "bun"
    port: 4510
    domain: "hellocar-api-{env}.33800.nowhere84.com"
    path: "apps/api"
    env:
      NODE_ENV: "@ENV"
      API_PORT: "4510"
      API_HOST: "0.0.0.0"
      SUPABASE_URL: "@SUPABASE_URL"
      SUPABASE_SERVICE_ROLE_KEY: "@SUPABASE_SERVICE_ROLE_KEY"
      TZ: "@TZ"

  - name: "hellocar-admin"
    type: "qwik-bun"
    port: 4500
    domain: "hellocar-admin-{env}.33800.nowhere84.com"
    path: "apps/admin"
    env:
      NODE_ENV: "@ENV"
      ADMIN_PORT: "4500"
      SUPABASE_URL: "@SUPABASE_URL"
      SUPABASE_SERVICE_ROLE_KEY: "@SUPABASE_SERVICE_ROLE_KEY"
      TZ: "@TZ"

  - name: "hellocar-public"
    type: "qwik-bun"
    port: 4501
    domain: "hellocar-public-{env}.33800.nowhere84.com"
    path: "apps/public"
    env:
      NODE_ENV: "@ENV"
      PUBLIC_PORT: "4501"
      SUPABASE_URL: "@SUPABASE_URL"
      SUPABASE_SERVICE_ROLE_KEY: "@SUPABASE_SERVICE_ROLE_KEY"
      TZ: "@TZ"

shared:
  package_manager: "pnpm"
  monorepo: true
  build_common_first: true

Avancement