github.com/vshn/k8ify@v1.1.2-0.20240502214202-6c9ed3ef0bf4/tests/golden/demo/docker-compose-prod.yml (about)

     1  version: '3.4'
     2  services:
     3    portal:
     4      image: image-registry.openshift-image-registry.svc:5000/portal/portal:latest
     5      deploy:
     6        replicas: 2
     7        resources:
     8          reservations:
     9            cpus: '0.1'
    10            memory: 2G
    11      labels:
    12        k8ify.expose.8001: 'portal-k8ify.apps.cloudscale-lpg-2.appuio.cloud'
    13        k8ify.expose.9001: 'portal-k8ify-admin.apps.cloudscale-lpg-2.appuio.cloud'
    14        k8ify.share-storage: true
    15        k8ify.liveness.path: /health/alive
    16        k8ify.readiness.path: /health/ready
    17        k8ify.readiness.scheme: HTTPS
    18        k8ify.readiness.periodSeconds: 31
    19        k8ify.readiness.timeoutSeconds: 59
    20        k8ify.readiness.initialDelaySeconds: 5
    21        k8ify.readiness.successThreshold: 2
    22        k8ify.readiness.failureThreshold: 4
    23        k8ify.startup.path: /health/started
    24        k8ify.serviceAccountName: portalk8saccess
    25        k8ify.Ingress.annotations.cert-manager.io/cluster-issuer: letsencrypt-production
    26      environment:
    27        - mongodb_hostname=mongo
    28        - mongodb_username=portal
    29        - mongodb_password=$prod_mongodb_password
    30        - mongodb_disable_tls=true
    31    mongo:
    32      labels:
    33        k8ify.Pod.annotations.k8up.io/backupcommand: "sh -c 'mongodump --username=$$MONGODB_ROOT_USER --password=$$MONGODB_ROOT_PASSWORD --archive'"
    34        k8ify.Pod.annotations.k8up.io/file-extension: ".archive"
    35        k8ify.annotations.k8up.io/file-extension: "defaultvalue"
    36        k8ify.annotations.helloWorld: "Hello World!"
    37        k8ify.singleton: true
    38      deploy:
    39        resources:
    40          limits:
    41            memory: 8G
    42          reservations:
    43            cpus: '0.5'
    44            memory: 4G
    45  
    46  volumes:
    47    mongodb_data:
    48      labels:
    49        k8ify.singleton: true