compose.yaml 802 B

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