stack.yml 885 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Drupal with PostgreSQL
  2. #
  3. # Access via "http://localhost:8080"
  4. # (or "http://$(docker-machine ip):8080" if using docker-machine)
  5. #
  6. # During initial Drupal setup,
  7. # Database type: PostgreSQL
  8. # Database name: postgres
  9. # Database username: postgres
  10. # Database password: example
  11. # ADVANCED OPTIONS; Database host: postgres
  12. version: '3.1'
  13. services:
  14. drupal:
  15. image: drupal:8-apache
  16. ports:
  17. - 8080:80
  18. volumes:
  19. - /var/www/html/modules
  20. - /var/www/html/profiles
  21. - /var/www/html/themes
  22. # this takes advantage of the feature in Docker that a new anonymous
  23. # volume (which is what we're creating here) will be initialized with the
  24. # existing content of the image at the same location
  25. - /var/www/html/sites
  26. restart: always
  27. postgres:
  28. image: postgres:10
  29. environment:
  30. POSTGRES_PASSWORD: example
  31. restart: always