Advertisement
Guest User

Untitled

a guest
Apr 17th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: "2"
  2.  
  3. services:
  4.   mariadb:
  5.     image: wodby/mariadb:$MARIADB_TAG
  6.     container_name: "${PROJECT_NAME}_mariadb"
  7.     stop_grace_period: 30s
  8.     environment:
  9.       MYSQL_ROOT_PASSWORD: $DB_ROOT_PASSWORD
  10.       MYSQL_DATABASE: $DB_NAME
  11.       MYSQL_USER: $DB_USER
  12.       MYSQL_PASSWORD: $DB_PASSWORD
  13.     volumes:
  14.       - ../db_data:/var/lib/mysql
  15.     ports:
  16.        - "53306:3306"
  17.  
  18. #    volumes:
  19. #      - ./mariadb-init:/docker-entrypoint-initdb.d # Place init .sql file(s) here.
  20. #      - /path/to/mariadb/data/on/host:/var/lib/mysql # I want to manage volumes manually.
  21.  
  22.   php:
  23.     image: wodby/drupal-php:$PHP_TAG
  24.     container_name: "${PROJECT_NAME}_php"
  25.     environment:
  26.       PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
  27.       DB_HOST: $DB_HOST
  28.       DB_USER: $DB_USER
  29.       DB_PASSWORD: $DB_PASSWORD
  30.       DB_NAME: $DB_NAME
  31.       DB_DRIVER: $DB_DRIVER
  32.     volumes:
  33.       - ../html/:/var/www/html/ # User-guided caching
  34.         #      - docker-sync:/var/www/html # Docker-sync
  35. ## Read instructions at https://wodby.com/stacks/drupal/docs/local/xdebug/
  36. #      PHP_XDEBUG: 1
  37. #      PHP_XDEBUG_DEFAULT_ENABLE: 1
  38. #      PHP_XDEBUG_REMOTE_CONNECT_BACK: 0
  39. #      PHP_IDE_CONFIG: serverName=my-ide
  40. #      PHP_XDEBUG_REMOTE_HOST: 172.17.0.1 # Linux
  41. #      PHP_XDEBUG_REMOTE_HOST: 10.254.254.254 # macOS
  42. #      PHP_XDEBUG_REMOTE_HOST: 10.0.75.1 # Windows
  43.    
  44. ## For macOS users (https://wodby.com/stacks/drupal/docs/local/docker-for-mac/)
  45. ## For Xdebug profiler files
  46. #      - files:/mnt/files
  47.  
  48.   nginx:
  49.     image: wodby/drupal-nginx:$NGINX_TAG
  50.     container_name: "${PROJECT_NAME}_nginx"
  51.     depends_on:
  52.       - php
  53.     environment:
  54.       NGINX_STATIC_CONTENT_OPEN_FILE_CACHE: "off"
  55.       NGINX_ERROR_LOG_LEVEL: debug
  56.       NGINX_BACKEND_HOST: php
  57.       NGINX_SERVER_ROOT: /var/www/html/web
  58. #      NGINX_DRUPAL_FILE_PROXY_URL: http://example.com
  59.     volumes:
  60.       - /home/webmaster/docker/CLIENT/html:/var/www/html
  61.     #volumes:
  62.     #  - ../html/:/var/www/html:cached # User-guided caching
  63.     #  - docker-sync:/var/www/html # Docker-sync
  64.     ports:
  65.        - "8680:80"
  66.  
  67.   mailhog:
  68.     image: mailhog/mailhog
  69.     container_name: "${PROJECT_NAME}_mailhog"
  70.     labels:
  71.       - 'traefik.backend=mailhog'
  72.       - 'traefik.port=8025'
  73.       - 'traefik.frontend.rule=Host:mailhog.${PROJECT_BASE_URL}'
  74.  
  75.   traefik:
  76.     image: traefik
  77.     container_name: "${PROJECT_NAME}_traefik"
  78.     command: -c /dev/null --web --docker --logLevel=INFO
  79.     ports:
  80.       - '8000:80'
  81. #      - '8080:8080' # Dashboard
  82.     volumes:
  83.       - /var/run/docker.sock:/var/run/docker.sock
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement