com.bunnyshell.k8s.id: 123
com.bunnyshell.k8s.unique: {alphanumeric}
com.bunnyshell.k8s.docker-compose-version: 3.4
type: primary | ephemeral
com.bunnyshell.k8s.display-name: PHP App
com.bunnyshell.k8s.source-file: git.repo.com/.docker/docker-compose.yaml
com.bunnyshell.k8s.source-file-hash: {alphanumeric}
com.bunnyshell.k8s.source-block-hash: {alphanumeric}
com.bunnyshell.k8s.source-name: php
gitApplicationPath: / # optional; for monorepo apps
gitDockerComposePath: / # the path of the docker-compose.yaml inside the git_repo
# image: ... # if present, `image` will be removed, we will build the image and after that we will add the image: with the value from our Amazon ECR
API_PATH: BNS_INGRESS_URL_NGINX # BNS_ are auto-generated
resources: # k8s resources for this service; k8s syntax
hosts: # you can add more
- hostname: app # will be suffixed with -${env_unique}.bunnyenv.com
preReleaseCommands: # every new pod for this Application will first run these commands in order and wait until they are succesfull; only after their success, the pod will start
- php bin/console doctrine:migrations -y
schedule: "*/1 * * * *" # k8s Cron schedule syntax (https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#cron-schedule-syntax);
command: php bin/console git:check-status # this will be passed as an argument to `/bin/sh -c`
gitApplicationPath: / # optional; for monorepo apps
com.bunnyshell.k8s.id: 123 # Bunnyshell ID, optional
com.bunnyshell.k8s.display-name: Web Server
com.bunnyshell.k8s.source-file: git.repo.com/.docker/docker-compose.yaml
com.bunnyshell.k8s.source-file-hash: {alphanumeric}
com.bunnyshell.k8s.source-block-hash: {alphanumeric}
com.bunnyshell.k8s.source-name: nginx
gitApplicationPath: / # optional; for monorepo apps
gitDockerComposePath: / # the path of the docker-compose.yaml inside the git_repo
resources: # k8s resources for this service; k8s syntax
path: /var/www/public # path on this service container (e.g. frontend)
path: /var/www/html/public # path on the pod-colocated service container (e.g. nginx)
initial_contents: '@self'
hosts: # you can add more
- hostname: app # will be suffixed with -${env_unique}.bunnyenv.com
com.bunnyshell.k8s.id: 456 # Bunnyshell ID, optional
com.bunnyshell.k8s.display-name: Database
com.bunnyshell.k8s.source-file: git.repo.com/.docker/docker-compose.yaml
com.bunnyshell.k8s.source-file-hash: {alphanumeric}
com.bunnyshell.k8s.source-block-hash: {alphanumeric}
com.bunnyshell.k8s.source-name: mysql
gitApplicationPath: / # optional; for monorepo apps
gitDockerComposePath: / # the path of the docker-compose.yaml inside the git_repo
resources: # k8s resources for this service; k8s syntax
dbSeed: anonymized-dumps/stage-complex-scenarios.sql:v3