docker-compose.yml 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. #
  65. # jupyter.algometic.com->http://vorsprung.local:8564 #production,
  66. # algometic.com=>www.algometic.com,
  67. DOMAINS: '
  68. algometic.com->http://vorsprung.local:8280 #production,
  69. www.algometic.com->http://vorsprung.local:8280 #production,
  70. mango.algometic.com->http://vorsprung.local:8111 #production,
  71. ocd.algometic.com->http://vorsprung.local:1235 #production,
  72. code.algometic.com->http://vorsprung.local:9981 #production,
  73. 58985620.algometic.com->http://vorsprung.local:8055 #production,
  74. melody.algometic.com->http://vorsprung.local:9045 #production,
  75. metrics.algometic.com->http://vorsprung.local:3000 #production,
  76. books.algometic.com->http://vorsprung.local:8783 #production,
  77. syn.algometic.com->http://vorsprung.local:9081 #production,
  78. git.algometic.com->http://vorsprung.local:3079 #production,
  79. element.algometic.com->http://vorsprung.local:8008 #production,
  80. matrix.algometic.com->http://vorsprung.local:8380 #production,
  81. identity.algometic.com->http://vorsprung.local:8090 #production,
  82. cine.algometic.com->http://vorsprung.local:8096 #production,
  83. 1984.algometic.com->192.168.6.10:8118 #production
  84. '
  85. # #algometic.com->http://vsu-dolphin:80 #local,
  86. CLIENT_MAX_BODY_SIZE: 64M