upstream V3 development https://www.gnusocial.rocks/v3
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

68 lines
1.8 KiB

  1. version: '3'
  2. services:
  3. php:
  4. build: php
  5. depends_on:
  6. - db
  7. - redis
  8. - pa11y
  9. volumes:
  10. # Entrypoint
  11. - ../php/entrypoint.sh:/entrypoint.sh
  12. - ../db/wait_for_db.sh:/wait_for_db.sh
  13. - ../social/install.sh:/var/entrypoint.d/0_social_install.sh
  14. - ./coverage.sh:/var/tooling/coverage.sh
  15. - ./phpstan.sh:/var/tooling/phpstan.sh
  16. - ./acceptance_and_accessibility.sh:/var/tooling/acceptance_and_accessibility.sh
  17. # Main files
  18. - ../../:/var/www/social
  19. - /var/www/social/docker # exclude docker folder
  20. - ./xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
  21. env_file:
  22. - social.env
  23. - db.env
  24. command: /entrypoint.sh
  25. nginx:
  26. image: nginx:alpine
  27. depends_on:
  28. - php
  29. restart: always
  30. tty: false
  31. volumes:
  32. # Nginx
  33. - ../nginx/nginx.conf:/var/nginx/social.conf
  34. - ../nginx/domain.sh:/var/nginx/domain.sh
  35. # Certbot
  36. - ../certbot/www:/var/www/certbot
  37. - ../certbot/.files:/etc/letsencrypt
  38. # social
  39. - ../../public:/var/www/social/public
  40. env_file:
  41. - ../bootstrap/bootstrap.env
  42. command: /bin/sh -c '/var/nginx/domain.sh; nginx -g "daemon off;"'
  43. pa11y:
  44. build: pa11y
  45. volumes:
  46. - ../../tests/CodeCeption/pa11y-config.json:/pa11y/config.json
  47. cap_add:
  48. - SYS_ADMIN
  49. db:
  50. image: postgres:alpine
  51. environment:
  52. - PGDATA=/var/lib/postgres/data
  53. env_file:
  54. - db.env
  55. volumes:
  56. - database:/var/lib/postgres/data
  57. redis:
  58. image: redis:alpine
  59. tty: false
  60. volumes:
  61. database: