docker-compose.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. version: '3.1'
  2. services:
  3. php:
  4. image: php:7-fpm
  5. container_name: ${CONTAINER_PREFIX}_php
  6. web:
  7. image: nginx
  8. depends_on:
  9. - php
  10. restart: always
  11. container_name: ${CONTAINER_PREFIX}_web
  12. volumes:
  13. - ${DATA_ROOT}/conf/nginx.conf:/etc/nginx/conf.d/default.conf
  14. - ${DATA_ROOT}/logs:/var/log/nginx
  15. - ${DATA_ROOT}/www:/var/www/html
  16. ports:
  17. # the router forwards internet traffic from 80 to the host
  18. # machine where "web" is listening on exposed port 8080
  19. # the request will be processed according to the
  20. # configurations in nginx.conf
  21. - 8280:80
  22. https-portal:
  23. image: steveltn/https-portal:1
  24. container_name: ${CONTAINER_PREFIX}_https-portal
  25. ports:
  26. #- 8080:80
  27. # the router forwards internet traffic from 443 to the host
  28. # machine where https-portal is listening on 443
  29. - 8080:80
  30. - 443:443
  31. depends_on:
  32. - web
  33. restart: always
  34. volumes:
  35. - ${DATA_ROOT}/ssl_certs:/var/lib/https-portal
  36. environment:
  37. # DOMAINS: 'dav.algometic.com->http://vsu-koala:80 #local,
  38. # www.vortifytech.com-> http://web:80 #production,
  39. # cal.algometic.com->http://vsu-koala:80 #local,
  40. # algometic.com->http://vsu-dolphin:80 #staging'
  41. # DOMAINS: '
  42. # algometic.com=>www.algometic.com,
  43. # www.algometic.com->http://vorsprung.local:8280 #production,
  44. # mango.algometic.com->http://vorsprung.local:8111 #production,
  45. # ocd.algometic.com->http://vorsprung.local:1234 #production,
  46. # code.algometic.com->http://vorsprung.local:9980 #production,
  47. # 58985620.algometic.com->http://vorsprung.local:8055 #production,
  48. # melody.algometic.com->http://vorsprung.local:9045 #production,
  49. # metrics.algometic.com->http://vorsprung.local:3000 #production,
  50. # books.algometic.com->http://vorsprung.local:8783 #production,
  51. # syn.algometic.com->http://vorsprung.local:9081 #production,
  52. # slot.algometic.com->http://vorsprung.local:9981 #production,
  53. # slot1234.algometic.com->http://vorsprung.local:1235 #production,
  54. # '
  55. #
  56. # if you are getting a 502 bad gateway error (111:connection refused) while
  57. # connecting to upstream, verify the redirection actually is accessible from
  58. # within https-portal to the destination.
  59. # For instance, specifying the hostname vorsprung without the .local
  60. # domain name resolves to 127.0.0.1, which of course wouldn't work because
  61. # the service is not running on https-portal. The proper fix is to
  62. # use vorspurng.local which resolves to 192.168.1.124
  63. #
  64. DOMAINS: '
  65. algometic.com=>www.algometic.com,
  66. www.algometic.com->http://vorsprung.local:8280 #production,
  67. mango.algometic.com->http://vorsprung.local:8111 #production,
  68. ocd.algometic.com->http://vorsprung.local:1235 #production,
  69. code.algometic.com->http://vorsprung.local:9981 #production,
  70. 58985620.algometic.com->http://vorsprung.local:8055 #production,
  71. melody.algometic.com->http://vorsprung.local:9045 #production,
  72. metrics.algometic.com->http://vorsprung.local:3000 #production,
  73. books.algometic.com->http://vorsprung.local:8783 #production,
  74. syn.algometic.com->http://vorsprung.local:9081 #production,
  75. git.algometic.com->http://vorsprung.local:3079 #production,
  76. '
  77. # #algometic.com->http://vsu-dolphin:80 #local,
  78. CLIENT_MAX_BODY_SIZE: 64M