Guest User

Untitled

a guest
Aug 24th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. version: '3.1'
  2.  
  3. networks:
  4. drupal8:
  5. external: false
  6.  
  7. services:
  8. traefik:
  9. container_name: ${DOMAIN}-traefik
  10. image: traefik
  11. command: --web --docker --docker.domain=${DOMAIN}.localhost --logLevel=DEBUG
  12. ports:
  13. - "82:80"
  14. - "8082:8080"
  15. - "8028:8025"
  16. volumes:
  17. - /var/run/docker.sock:/var/run/docker.sock
  18. - /dev/null:/traefik.toml
  19. networks:
  20. - drupal8
  21.  
  22. drupal:
  23. container_name: ${DOMAIN}-drupal
  24. image: drupal:8-apache
  25. volumes:
  26. - ./modules:/var/www/html/modules
  27. - ./profiles:/var/www/html/profiles
  28. - ./themes:/var/www/html/themes
  29. # this takes advantage of the feature in Docker that a new anonymous
  30. # volume (which is what we're creating here) will be initialized with the
  31. # existing content of the image at the same location
  32. - ./sites:/var/www/html/sites
  33. labels:
  34. - "traefik.backend=app-${DOMAIN}"
  35. - "traefik.frontend.rule=Host:app.${DOMAIN}.localhost"
  36. # - "traefik.docker.network=drupal8"
  37. restart: always
  38. depends_on:
  39. - postgres
  40. networks:
  41. - drupal8
  42.  
  43. postgres:
  44. container_name: ${DOMAIN}-postgres
  45. image: postgres:10
  46. environment:
  47. - POSTGRES_PGDATA=/var/lib/postgresql/data/pgdata
  48. - POSTGRES_USER=${DB_USERNAME}
  49. - POSTGRES_PASSWORD=${DB_PASSWORD}
  50. - POSTGRES_DB=${DB_DATABASE}
  51. restart: always
  52. volumes:
  53. - ./pgdata:/var/lib/postgresql/data
  54. networks:
  55. - drupal8
  56. labels:
  57. - "traefik.enable=false"
  58.  
  59. adminer:
  60. container_name: ${DOMAIN}-adminer
  61. image: adminer
  62. restart: always
  63. links:
  64. - postgres
  65. labels:
  66. - "traefik.backend=adminer-${DOMAIN}"
  67. - "traefik.frontend.rule=Host:adminer.${DOMAIN}.localhost"
  68. - "traefik.port=8080"
  69. networks:
  70. - drupal8
  71.  
  72. mailhog:
  73. container_name: ${DOMAIN}-mailhog
  74. image: mailhog/mailhog
  75. labels:
  76. - "traefik.backend=mail-${DOMAIN}"
  77. - "traefik.frontend.rule=Host:mail.${DOMAIN}.localhost"
  78. - "traefik.port=8025"
  79. networks:
  80. - drupal8
  81.  
  82. volumes:
  83. db:
  84. driver: local
Add Comment
Please, Sign In to add comment