Aller au contenu

App PHP/Symfony

name: payment
namespace: payment
vaultSecretsPath: secret/platform/apps/digital-factory/payment
databases:
pgs:
- name: payment
features:
- nginx-php
- redis
migration:
enable: true
useAppImg: true
command: ["/bin/sh", "-c", "php bin/console doctrine:migrations:migrate --no-interaction"]
network:
- name: app
isPublic: false
host: payment.homeserve.fr
services:
- name: default
port: 80
path: /
cors:
allowOrigins:
- "https://backoffice.homeserve.fr"
- "https://*.homeserve.io"
allowMethods: [GET, POST, PUT, DELETE, PATCH]
allowHeaders: [Authorization, Content-Type, X-Requested-With]
livenessProbe:
httpGet:
path: /health
port: 80
timeoutSeconds: 20
periodSeconds: 5
failureThreshold: 1
readinessProbe:
httpGet:
path: /health
port: 80
timeoutSeconds: 20
periodSeconds: 5
failureThreshold: 1
environmentVariables:
- name: DATABASE_URL
value: "postgresql://$(PG_USER_PAYMENT):$(PG_PASS_PAYMENT)@$(PG_HOST_PAYMENT)/$(PG_DBNAME_PAYMENT)"
- name: REDIS_URL
value: "vault:secret/platform/redis#redis1_url"

Notes :

  • nginx-php ajoute un sidecar nginx devant PHP-FPM (port 80)
  • isPublic: false restreint aux IPs Homeserve
  • CORS custom pour le backoffice
  • En prod, accessible via payment.homeserve.fr