Guest User

Untitled

a guest
Apr 26th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. version: '3'
  2.  
  3. services:
  4. postgres:
  5. image: postgres:9.6
  6. environment:
  7. POSTGRES_DB: ${POSTGRES_DB}
  8. POSTGRES_USER: ${POSTGRES_USER}
  9. POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
  10. POSTGRES_PORT: ${POSTGRES_PORT}
  11.  
  12. php:
  13. build: docker/php7-fpm
  14. env_file: ./.env
  15. volumes:
  16. - ${SYMFONY_APP_PATH}:/var/www/symfony
  17.  
  18. nginx:
  19. build: docker/nginx
  20. ports:
  21. - ${WEB_PORT}:80
  22. volumes:
  23. - php:/var/www/symfony
  24. - ${LOGS_DIR}/nginx/:/var/log/nginx
  25.  
  26. node:
  27. build: docker/node
  28. ports:
  29. - 8081:8081
  30. volumes:
  31. - ${SYMFONY_APP_PATH}:/var/www/symfony
  32. command: bash -c "npm i && npm run dev"
  33. environment:
  34. WEB_PORT: ${WEB_PORT}
  35. WEBPACK_PORT: ${WEBPACK_PORT}
  36. APP_ENV: ${APP_ENV}
  37.  
  38. networks:
  39. default:
  40. external:
  41. name: app_network
  42.  
  43. volumes:
  44. php:
Add Comment
Please, Sign In to add comment