docker-compose.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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:8280 #production,
  44. # mango.algometic.com->http://vorsprung:8111 #production,
  45. # ocd.algometic.com->http://vorsprung:1234 #production,
  46. # code.algometic.com->http://vorsprung:9980 #production,
  47. # 58985620.algometic.com->http://vorsprung:8055 #production,
  48. # melody.algometic.com->http://vorsprung:9045 #production,
  49. # metrics.algometic.com->http://vorsprung:3000 #production,
  50. # books.algometic.com->http://vorsprung:8783 #production,
  51. # syn.algometic.com->http://vorsprung:9081 #production,
  52. # slot.algometic.com->http://vorsprung:9981 #production,
  53. # slot1234.algometic.com->http://vorsprung:1235 #production,
  54. # '
  55. DOMAINS: '
  56. algometic.com=>www.algometic.com,
  57. www.algometic.com->http://vorsprung:8280 #production,
  58. mango.algometic.com->http://vorsprung:8111 #production,
  59. ocd.algometic.com->http://vorsprung:1235 #production,
  60. code.algometic.com->http://vorsprung:9981 #production,
  61. 58985620.algometic.com->http://vorsprung:8055 #production,
  62. melody.algometic.com->http://vorsprung:9045 #production,
  63. metrics.algometic.com->http://vorsprung:3000 #production,
  64. books.algometic.com->http://vorsprung:8783 #production,
  65. syn.algometic.com->http://vorsprung:9081 #production,
  66. slot.algometic.com->http://tufbunny:3000 #production,
  67. '
  68. # #algometic.com->http://vsu-dolphin:80 #local,
  69. CLIENT_MAX_BODY_SIZE: 64M