Created
August 27, 2021 20:49
-
-
Save shaal/634805eaf558c28f50cbc084061c1787 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.6' | |
| #ddev-generated | |
| services: | |
| db: | |
| container_name: ddev-${DDEV_SITENAME}-db | |
| build: | |
| context: './db-build' | |
| dockerfile: '../.dbimageBuild/Dockerfile' | |
| args: | |
| BASE_IMAGE: $DDEV_DBIMAGE | |
| username: 'gitpod' | |
| uid: '33333' | |
| gid: '33333' | |
| image: ${DDEV_DBIMAGE}-${DDEV_SITENAME}-built | |
| stop_grace_period: 60s | |
| working_dir: "/home/gitpod" | |
| volumes: | |
| - type: "volume" | |
| source: mariadb-database | |
| target: "/var/lib/mysql" | |
| volume: | |
| nocopy: true | |
| - type: "bind" | |
| source: "." | |
| target: "/mnt/ddev_config" | |
| - ddev-global-cache:/mnt/ddev-global-cache | |
| restart: "no" | |
| user: '$DDEV_UID:$DDEV_GID' | |
| hostname: drupalpod-db | |
| ports: | |
| - "$DDEV_HOST_DB_PORT:3306" | |
| labels: | |
| com.ddev.site-name: ${DDEV_SITENAME} | |
| com.ddev.platform: ddev | |
| com.ddev.app-type: drupal9 | |
| com.ddev.approot: $DDEV_APPROOT | |
| environment: | |
| - COLUMNS | |
| - DDEV_HOSTNAME | |
| - DDEV_PHP_VERSION | |
| - DDEV_PRIMARY_URL | |
| - DDEV_PROJECT | |
| - DDEV_PROJECT_TYPE | |
| - DDEV_ROUTER_HTTP_PORT | |
| - DDEV_ROUTER_HTTPS_PORT | |
| - DDEV_SITENAME | |
| - DDEV_TLD | |
| - DOCKER_IP=127.0.0.1 | |
| - HOST_DOCKER_INTERNAL_IP= | |
| - IS_DDEV_PROJECT=true | |
| - LINES | |
| - MYSQL_HISTFILE=/mnt/ddev-global-cache/mysqlhistory/${DDEV_SITENAME}-db/mysql_history | |
| - TZ= | |
| command: "$DDEV_MARIADB_LOCAL_COMMAND" | |
| healthcheck: | |
| interval: 1s | |
| retries: 120 | |
| start_period: 120s | |
| timeout: 120s | |
| web: | |
| container_name: ddev-${DDEV_SITENAME}-web | |
| build: | |
| context: './web-build' | |
| dockerfile: '../.webimageBuild/Dockerfile' | |
| args: | |
| BASE_IMAGE: $DDEV_WEBIMAGE | |
| username: 'gitpod' | |
| uid: '33333' | |
| gid: '33333' | |
| image: ${DDEV_WEBIMAGE}-${DDEV_SITENAME}-built | |
| cap_add: | |
| - SYS_PTRACE | |
| working_dir: "/var/www/html/" | |
| volumes: | |
| - type: bind | |
| source: ../ | |
| target: /var/www/html | |
| consistency: cached | |
| - ".:/mnt/ddev_config:ro" | |
| - "./nginx_full:/etc/nginx/sites-enabled:ro" | |
| - "./apache:/etc/apache2/sites-enabled:ro" | |
| - ddev-global-cache:/mnt/ddev-global-cache | |
| - ./xhprof:/usr/local/bin/xhprof | |
| - ddev-ssh-agent_socket_dir:/home/.ssh-agent | |
| restart: "no" | |
| user: '$DDEV_UID:$DDEV_GID' | |
| hostname: drupalpod-web | |
| links: | |
| - db:db | |
| # ports is list of exposed *container* ports | |
| ports: | |
| - "$DDEV_HOST_WEBSERVER_PORT:80" | |
| - "$DDEV_HOST_HTTPS_PORT:443" | |
| environment: | |
| - COLUMNS | |
| - DOCROOT=${DDEV_DOCROOT} | |
| - DDEV_DOCROOT | |
| - DDEV_HOSTNAME | |
| - DDEV_PHP_VERSION | |
| - DDEV_PRIMARY_URL | |
| - DDEV_PROJECT | |
| - DDEV_PROJECT_TYPE | |
| - DDEV_ROUTER_HTTP_PORT | |
| - DDEV_ROUTER_HTTPS_PORT | |
| - DDEV_SITENAME | |
| - DDEV_TLD | |
| - DDEV_FILES_DIR | |
| - DDEV_WEBSERVER_TYPE | |
| - DDEV_XDEBUG_ENABLED | |
| - DEPLOY_NAME=local | |
| - DRUSH_OPTIONS_URI=$DDEV_PRIMARY_URL | |
| - DRUSH_ALLOW_XDEBUG=1 | |
| - DOCKER_IP=127.0.0.1 | |
| - HOST_DOCKER_INTERNAL_IP= | |
| # HTTP_EXPOSE allows for ports accepting HTTP traffic to be accessible from <site>.ddev.site:<port> | |
| # To expose a container port to a different host port, define the port as hostPort:containerPort | |
| - HTTP_EXPOSE=${DDEV_ROUTER_HTTP_PORT}:80,${DDEV_MAILHOG_PORT}:8025 | |
| # You can optionally expose an HTTPS port option for any ports defined in HTTP_EXPOSE. | |
| # To expose an HTTPS port, define the port as securePort:containerPort. | |
| - HTTPS_EXPOSE=${DDEV_ROUTER_HTTPS_PORT}:80,${DDEV_MAILHOG_HTTPS_PORT}:8025 | |
| - IS_DDEV_PROJECT=true | |
| - LINES | |
| - MYSQL_HISTFILE=/mnt/ddev-global-cache/mysqlhistory/${DDEV_SITENAME}-web/mysql_history | |
| - PHP_IDE_CONFIG=serverName=${DDEV_SITENAME}.${DDEV_TLD} | |
| - SSH_AUTH_SOCK=/home/.ssh-agent/socket | |
| - TZ= | |
| - VIRTUAL_HOST=${DDEV_HOSTNAME} | |
| labels: | |
| com.ddev.site-name: ${DDEV_SITENAME} | |
| com.ddev.platform: ddev | |
| com.ddev.app-type: drupal9 | |
| com.ddev.approot: $DDEV_APPROOT | |
| healthcheck: | |
| interval: 1s | |
| retries: 120 | |
| start_period: 120s | |
| timeout: 120s | |
| dba: | |
| container_name: ddev-${DDEV_SITENAME}-dba | |
| image: $DDEV_DBAIMAGE | |
| working_dir: "/root" | |
| restart: "no" | |
| labels: | |
| com.ddev.site-name: ${DDEV_SITENAME} | |
| com.ddev.platform: ddev | |
| com.ddev.app-type: drupal9 | |
| com.ddev.approot: $DDEV_APPROOT | |
| links: | |
| - db:db | |
| expose: | |
| - "80" | |
| hostname: drupalpod-dba | |
| environment: | |
| - PMA_USER=root | |
| - PMA_PASSWORD=root | |
| - VIRTUAL_HOST=$DDEV_HOSTNAME | |
| - UPLOAD_LIMIT=1024M | |
| - TZ= | |
| # HTTP_EXPOSE allows for ports accepting HTTP traffic to be accessible from <site>.ddev.site:<port> | |
| - HTTP_EXPOSE=${DDEV_PHPMYADMIN_PORT}:8036 | |
| - HTTPS_EXPOSE=${DDEV_PHPMYADMIN_HTTPS_PORT}:8036 | |
| healthcheck: | |
| interval: 120s | |
| timeout: 2s | |
| retries: 1 | |
| networks: | |
| default: | |
| name: ddev_default | |
| external: true | |
| volumes: | |
| mariadb-database: | |
| name: "drupalpod-mariadb" | |
| ddev-ssh-agent_socket_dir: | |
| external: true | |
| ddev-global-cache: | |
| name: ddev-global-cache | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment