Advertisement
Guest User

Untitled

a guest
May 10th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. version: '3'
  2.  
  3. services:
  4. nginx:
  5. image: nginx:1.15
  6. ports:
  7. - 8888:80
  8. volumes:
  9. - ../:/var/www/html
  10. - ./nginx/nginx.conf:/etc/nginx/nginx.conf
  11. depends_on:
  12. - php
  13.  
  14. php:
  15. build:
  16. ./php
  17. ports:
  18. - 9999:9000
  19. volumes:
  20. - ../:/var/www/html
  21. depends_on:
  22. - db
  23.  
  24. db:
  25. image: postgres:11.0
  26. restart: always
  27. environment:
  28. POSTGRES_USER: root
  29. POSTGRES_PASSWORD: qwerty
  30. ports:
  31. - 5555:5432
  32. volumes:
  33. - ./db/data/postgresql:/var/lib/postgresql/data
  34.  
  35. composer:
  36. image: composer:1.7
  37. working_dir: /var/www/html
  38. command: update --ignore-platform-reqs --no-scripts
  39. volumes:
  40. - ../:/var/www/html
  41. depends_on:
  42. - php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement