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.

109 lines
3.1 KiB

3 years ago
  1. # For more information: https://laravel.com/docs/sail
  2. version: '3'
  3. services:
  4. app:
  5. container_name: app
  6. build:
  7. context: ./vendor/laravel/sail/runtimes/8.1
  8. dockerfile: Dockerfile
  9. args:
  10. WWWGROUP: '${WWWGROUP}'
  11. image: sail-8.1/app
  12. extra_hosts:
  13. - 'host.docker.internal:host-gateway'
  14. ports:
  15. - '${APP_PORT:-80}:80'
  16. environment:
  17. WWWUSER: '${WWWUSER}'
  18. LARAVEL_SAIL: 1
  19. XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
  20. XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
  21. volumes:
  22. - '.:/var/www/html'
  23. networks:
  24. - gitea
  25. depends_on:
  26. - rabbit
  27. # jenkins:
  28. # container_name: jenkins
  29. # build:
  30. # context: jenkins
  31. # dockerfile: Dockerfile
  32. # image: akbarjimi/jenkins
  33. # environment:
  34. # - JENKINS_ADMIN_ID=akbarjimi
  35. # - JENKINS_ADMIN_PASSWORD=akbarjimi
  36. # ports:
  37. # - 50000:50000
  38. # - 8080:8080
  39. # networks:
  40. # - gitea
  41. # dns:
  42. # - 178.22.122.100
  43. # - 185.51.200.2
  44. # profiles:
  45. # - donotstart
  46. # gitea:
  47. # image: gitea/gitea:1.16.0
  48. # container_name: gitea
  49. # environment:
  50. # - USER_UID=1000
  51. # - USER_GID=1000
  52. # - GITEA__database__DB_TYPE=mysql
  53. # - GITEA__database__HOST=db:3306
  54. # - GITEA__database__NAME=gitea
  55. # - GITEA__database__USER=gitea
  56. # - GITEA__database__PASSWD=gitea
  57. # - GITEA__webhook__ALLOWED_HOST_LIST=jenkins,172.18.0.2
  58. # restart: always
  59. # networks:
  60. # - gitea
  61. # volumes:
  62. # # - gitea:/data
  63. # - /etc/timezone:/etc/timezone:ro
  64. # - /etc/localtime:/etc/localtime:ro
  65. # ports:
  66. # - "3000:3000"
  67. # - "2221:22"
  68. # depends_on:
  69. # - db
  70. # db:
  71. # image: mysql:latest
  72. # container_name: mysql
  73. # restart: always
  74. # environment:
  75. # - MYSQL_ROOT_PASSWORD=gitea
  76. # - MYSQL_USER=gitea
  77. # - MYSQL_PASSWORD=gitea
  78. # - MYSQL_DATABASE=gitea
  79. # networks:
  80. # - gitea
  81. # pma:
  82. # image: phpmyadmin:latest
  83. # container_name: pma
  84. # restart: always
  85. # ports:
  86. # - 8090:80
  87. # networks:
  88. # - gitea
  89. rabbit:
  90. image: rabbitmq:management
  91. container_name: rabbit
  92. restart: always
  93. environment:
  94. - RABBITMQ_ERLANG_COOKIE=SWQOKODSQALRPCLNMEQG
  95. - RABBITMQ_DEFAULT_USER=root
  96. - RABBITMQ_DEFAULT_PASS=root
  97. - RABBITMQ_DEFAULT_VHOST=/
  98. ports:
  99. - 5067:5067
  100. - 15672:15672
  101. # command: rabbitmqadmin -uroot -proot import /etc/rabbitmq/definitions.json
  102. volumes:
  103. - ./definitions.json:/etc/rabbitmq/definitions.json:ro
  104. networks:
  105. - gitea
  106. networks:
  107. gitea:
  108. driver: bridge
  109. external: false