Advertisement
Guest User

Untitled

a guest
Oct 5th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. version: '2'
  2.  
  3. # Note: use the database service name `db` in the Host IP Address field ...
  4. # Or, `docker container inspect {postgrescontainerid}` to obtain the IP Address needed for completing the Drupal setup screen.
  5.  
  6. services:
  7. # Postgres
  8. db:
  9. image: postgres:9.6.5-alpine
  10. restart: always
  11. environment:
  12. POSTGRES_DB: drupaldb
  13. POSTGRES_USER: drupaluser
  14. POSTGRES_PASSWORD: drupalpassword
  15. volumes:
  16. - db_data:/var/lib/postgresql/data
  17. ports:
  18. - 5432:5432
  19.  
  20. # Drupal
  21. cms:
  22. image: drupal:8.3.7-apache
  23. restart: always
  24. ports:
  25. - 8080:80
  26. volumes:
  27. - cms_modules:/var/www/html/modules
  28. - cms_profiles:/var/www/html/profiles
  29. - cms_themes:/var/www/html/themes
  30. - cms_sites:/var/www/html/sites
  31. depends_on:
  32. - db
  33.  
  34. # Volumes
  35. volumes:
  36. db_data:
  37. cms_modules:
  38. cms_profiles:
  39. cms_themes:
  40. cms_sites:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement