docker-compose.yaml 906 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. version: '3'
  2. services:
  3. php:
  4. build: .
  5. depends_on:
  6. - db
  7. - redis
  8. volumes:
  9. # Entrypoint
  10. - ../php/entrypoint.sh:/entrypoint.sh
  11. - ../db/wait_for_db.sh:/wait_for_db.sh
  12. - ../social/install.sh:/var/entrypoint.d/0_social_install.sh
  13. - ./coverage.sh:/var/entrypoint.d/8_coverage.sh
  14. # Main files
  15. - ../../:/var/www/social
  16. - ./xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
  17. env_file:
  18. - social.env
  19. - db.env
  20. command: /entrypoint.sh
  21. db:
  22. image: postgres:alpine
  23. environment:
  24. - PGDATA=/var/lib/postgres/data
  25. env_file:
  26. - db.env
  27. volumes:
  28. - database:/var/lib/postgres/data
  29. redis:
  30. image: redis:alpine
  31. tty: false
  32. volumes:
  33. database: