|
| 1 | +# Azure Container Registry details |
| 2 | +image: |
| 3 | + repository: ifrcsmdb.azurecr.io/whatnowapi |
| 4 | + tag: "latest" |
| 5 | + pullPolicy: Always |
| 6 | + |
| 7 | +replicaCount: 1 |
| 8 | + |
| 9 | +# Kubernetes service configuration |
| 10 | +service: |
| 11 | + type: ClusterIP |
| 12 | + port: 80 |
| 13 | + targetPort: 80 |
| 14 | +# Environment variables |
| 15 | +env: |
| 16 | + APP_NAME: 'IFRC National Society Preparedness Messages' |
| 17 | + APP_ENV: production |
| 18 | + APP_DEBUG: false |
| 19 | + APP_LOG_LEVEL: info |
| 20 | + APP_URL: https://api-preparemessages.ifrc.org |
| 21 | + LOG_CHANNEL: stack |
| 22 | + DB_PORT: 3306 |
| 23 | + DB_CONNECTION: mysql |
| 24 | + BROADCAST_DRIVER: log |
| 25 | + CACHE_DRIVER: file |
| 26 | + QUEUE_CONNECTION: sync |
| 27 | + SESSION_DRIVER: file |
| 28 | + SESSION_LIFETIME: 120 |
| 29 | + REDIS_HOST: 127.0.0.1 |
| 30 | + REDIS_PASSWORD: null |
| 31 | + REDIS_PORT: 6379 |
| 32 | + MAIL_DRIVER: smtp |
| 33 | + MAIL_HOST: smtp.mailtrap.io |
| 34 | + MAIL_PORT: 2525 |
| 35 | + MAIL_USERNAME: null |
| 36 | + MAIL_PASSWORD: null |
| 37 | + MAIL_ENCRYPTION: null |
| 38 | + AWS_ACCESS_KEY_ID: |
| 39 | + AWS_SECRET_ACCESS_KEY: |
| 40 | + AWS_DEFAULT_REGION: us-east-1 |
| 41 | + AWS_BUCKET: |
| 42 | + PUSHER_APP_ID: |
| 43 | + PUSHER_APP_KEY: |
| 44 | + PUSHER_APP_SECRET: |
| 45 | + PUSHER_APP_CLUSTER: mt1 |
| 46 | + MIX_PUSHER_APP_KEY: "${PUSHER_APP_KEY}" |
| 47 | + MIX_PUSHER_APP_CLUSTER: "${PUSHER_APP_CLUSTER}" |
| 48 | + AZURE_STORAGE_ACCOUNT: smdbstorageaccount |
| 49 | + AZURE_STORAGE_CONTAINER: images |
| 50 | + AZURE_STORAGE_DOMAIN: blob.core.windows.net |
| 51 | + |
| 52 | +secrets: |
| 53 | + dbSecretName: admin-credentials |
| 54 | + variables: |
| 55 | + ADMIN_USER: ADMIN_USER |
| 56 | + ADMIN_PASSWORD: ADMIN_PASSWORD |
| 57 | + DB_HOST: DB_HOST |
| 58 | + DB_DATABASE: DB_DATABASE |
| 59 | + DB_USERNAME: DB_USERNAME |
| 60 | + DB_PASSWORD: DB_PASSWORD |
| 61 | + APP_KEY: APP_KEY |
| 62 | + AZURE_STORAGE_KEY: AZURE_STORAGE_KEY |
| 63 | + AZURE_STORAGE_CONNECTION_STRING: AZURE_STORAGE_CONNECTION_STRING |
| 64 | + |
| 65 | +# Ingress (if using) |
| 66 | +ingress: |
| 67 | + enabled: true |
| 68 | + annotations: |
| 69 | + kubernetes.io/ingress.class: nginx |
| 70 | + nginx.ingress.kubernetes.io/ssl-redirect: "true" |
| 71 | + nginx.ingress.kubernetes.io/force-ssl-redirect: "true" |
| 72 | + hosts: |
| 73 | + - host: "api.whatnow" |
| 74 | + paths: |
| 75 | + - path: / |
| 76 | + pathType: ImplementationSpecific |
| 77 | + - host: "api-preparemessages.ifrc.org" |
| 78 | + paths: |
| 79 | + - path: / |
| 80 | + pathType: Prefix |
| 81 | + tls: |
| 82 | + - hosts: |
| 83 | + - "api-preparemessages.ifrc.org" |
| 84 | + secretName: "ifrc.certificates.secret" |
0 commit comments