Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. version: '3'
  2. services:
  3. nginx:
  4. image: nginx:1.15.7-alpine
  5. container_name: library_nginx
  6. ports:
  7. - 80:80
  8. volumes:
  9. - .:/app/
  10. - ./.docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
  11. depends_on:
  12. - php-fpm
  13.  
  14. php-fpm:
  15. build: .docker/php-fpm/
  16. container_name: library_php-fpm
  17. command: run-dependencies
  18. environment:
  19. PHP_IDE_CONFIG: "serverName=docker"
  20. XDEBUG_CONFIG: remote_host=${HOST_IP}
  21. volumes:
  22. - .:/app/
  23. - ./.docker/php-fpm/php.ini:/usr/local/etc/php/conf.d/php.ini
  24. depends_on:
  25. - db
  26.  
  27. db:
  28. image: postgres:9.6-alpine
  29. container_name: library_db
  30. ports:
  31. - 5432:5432
  32. env_file:
  33. - ./.env.local
  34. environment:
  35. POSTGRES_USER: ${DATABASE_USER}
  36. POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
  37. volumes:
  38. - ./.data/:/var/lib/postgresql/data/
  39.  
  40. yarn:
  41. build: .docker/yarn/
  42. container_name: library_node
  43. command: build-frontend
  44. volumes:
  45. - .:/app/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement