Advertisement
Guest User

Untitled

a guest
Feb 29th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. #docker-compose.yml
  2. version: '2'
  3.  
  4. services:
  5. data-init:
  6. build: .
  7. volumes:
  8. - ./src:/var/www/eventzor/main_api
  9. - /etc/nginx
  10. nginx:
  11. image: nginx
  12. volumes_from:
  13. - data-init
  14. links:
  15. - php-fm:php
  16. ports:
  17. - "80:80"
  18.  
  19. php-fm:
  20. image: php:7.0-fpm
  21. volumes_from:
  22. - data-init
  23. links:
  24. - postgres:db
  25. expose:
  26. - "9000"
  27. environment:
  28. DEV: "1"
  29.  
  30. postgres:
  31. image: postgres
  32. volumes:
  33. - postgres-data:/var/lib/postgresql/data
  34. expose:
  35. - "5432"
  36. environment:
  37. POSTGRES_USER: symfony
  38. POSTGRES_PASSWORD: xxxx
  39. POSTGRES_DB: eventzor_main_api
  40. volumes:
  41. postgres-data: {}
  42. #Dockerfile
  43. FROM busybox
  44.  
  45. COPY ./conf/nginx /etc/nginx
  46. COPY ./src /var/www/eventzor/main_api
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement