Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "2"
- services:
- mariadb:
- image: wodby/mariadb:$MARIADB_TAG
- container_name: "${PROJECT_NAME}_mariadb"
- stop_grace_period: 30s
- environment:
- MYSQL_ROOT_PASSWORD: $DB_ROOT_PASSWORD
- MYSQL_DATABASE: $DB_NAME
- MYSQL_USER: $DB_USER
- MYSQL_PASSWORD: $DB_PASSWORD
- volumes:
- - ../db_data:/var/lib/mysql
- ports:
- - "53306:3306"
- # volumes:
- # - ./mariadb-init:/docker-entrypoint-initdb.d # Place init .sql file(s) here.
- # - /path/to/mariadb/data/on/host:/var/lib/mysql # I want to manage volumes manually.
- php:
- image: wodby/drupal-php:$PHP_TAG
- container_name: "${PROJECT_NAME}_php"
- environment:
- PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
- DB_HOST: $DB_HOST
- DB_USER: $DB_USER
- DB_PASSWORD: $DB_PASSWORD
- DB_NAME: $DB_NAME
- DB_DRIVER: $DB_DRIVER
- volumes:
- - ../html/:/var/www/html/ # User-guided caching
- # - docker-sync:/var/www/html # Docker-sync
- ## Read instructions at https://wodby.com/stacks/drupal/docs/local/xdebug/
- # PHP_XDEBUG: 1
- # PHP_XDEBUG_DEFAULT_ENABLE: 1
- # PHP_XDEBUG_REMOTE_CONNECT_BACK: 0
- # PHP_IDE_CONFIG: serverName=my-ide
- # PHP_XDEBUG_REMOTE_HOST: 172.17.0.1 # Linux
- # PHP_XDEBUG_REMOTE_HOST: 10.254.254.254 # macOS
- # PHP_XDEBUG_REMOTE_HOST: 10.0.75.1 # Windows
- ## For macOS users (https://wodby.com/stacks/drupal/docs/local/docker-for-mac/)
- ## For Xdebug profiler files
- # - files:/mnt/files
- nginx:
- image: wodby/drupal-nginx:$NGINX_TAG
- container_name: "${PROJECT_NAME}_nginx"
- depends_on:
- - php
- environment:
- NGINX_STATIC_CONTENT_OPEN_FILE_CACHE: "off"
- NGINX_ERROR_LOG_LEVEL: debug
- NGINX_BACKEND_HOST: php
- NGINX_SERVER_ROOT: /var/www/html/web
- # NGINX_DRUPAL_FILE_PROXY_URL: http://example.com
- volumes:
- - /home/webmaster/docker/CLIENT/html:/var/www/html
- #volumes:
- # - ../html/:/var/www/html:cached # User-guided caching
- # - docker-sync:/var/www/html # Docker-sync
- ports:
- - "8680:80"
- mailhog:
- image: mailhog/mailhog
- container_name: "${PROJECT_NAME}_mailhog"
- labels:
- - 'traefik.backend=mailhog'
- - 'traefik.port=8025'
- - 'traefik.frontend.rule=Host:mailhog.${PROJECT_BASE_URL}'
- traefik:
- image: traefik
- container_name: "${PROJECT_NAME}_traefik"
- command: -c /dev/null --web --docker --logLevel=INFO
- ports:
- - '8000:80'
- # - '8080:8080' # Dashboard
- volumes:
- - /var/run/docker.sock:/var/run/docker.sock
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement