unleash-stack.yaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. version: '3.8'
  2. services:
  3. clients:
  4. image: nginx:1.19-alpine
  5. configs:
  6. - source: nginx-unleash-clients-20211130
  7. target: /etc/nginx/nginx.conf
  8. uid: '0'
  9. gid: '0'
  10. mode: 0644
  11. networks:
  12. - unleash
  13. ports:
  14. - 13001:443
  15. secrets:
  16. - titleproject.space-20211130.crt
  17. - titleproject.space-20211130.key
  18. frontend:
  19. image: nginx:1.19-alpine
  20. configs:
  21. - source: nginx-unleash-frontend-20211130
  22. target: /etc/nginx/nginx.conf
  23. uid: '0'
  24. gid: '0'
  25. mode: 0644
  26. networks:
  27. - unleash
  28. ports:
  29. - 13000:443
  30. secrets:
  31. - titleproject.space-20211130.crt
  32. - titleproject.space-20211130.key
  33. postgres:
  34. image: postgres:14-alpine
  35. deploy:
  36. restart_policy:
  37. condition: none
  38. ports:
  39. - 5432
  40. environment:
  41. POSTGRES_PASSWORD: titleproject
  42. networks:
  43. unleash:
  44. aliases:
  45. - swarm1.titleproject.space
  46. secrets:
  47. - source: titleproject.space-20211130.crt
  48. target: titleproject.space-20211130.crt
  49. uid: '70'
  50. gid: '70'
  51. mode: 0600
  52. - source: titleproject.space-20211130.key
  53. target: titleproject.space-20211130.key
  54. uid: '70'
  55. gid: '70'
  56. mode: 0600
  57. command: -c ssl=on -c ssl_cert_file=/run/secrets/titleproject.space-20211130.crt -c ssl_key_file=/run/secrets/titleproject.space-20211130.key
  58. unleash:
  59. image: unleashorg/unleash-server:4.7.2
  60. deploy:
  61. restart_policy:
  62. condition: none
  63. environment:
  64. POSTGRES_PASSWORD: titleproject
  65. DATABASE_HOST: swarm1.titleproject.space
  66. DATABASE_NAME: unleash
  67. DATABASE_USERNAME: unleash
  68. DATABASE_PASSWORD: titleproject
  69. DATABASE_PORT: 5432
  70. DATABASE_SSL: "true"
  71. LOG_LEVEL: debug
  72. UNLEASH_URL: https://swarm1.titleproject.space:13000
  73. networks:
  74. - unleash
  75. unleash-proxy:
  76. image: unleashorg/unleash-proxy:0.7
  77. deploy:
  78. restart_policy:
  79. condition: none
  80. environment:
  81. UNLEASH_URL: http://unleash:4242/api/
  82. UNLEASH_API_TOKEN: default:development.b1b90818f6281a3fe3cd558d611ad934be1ebef8ae84bca8c5a941d2
  83. UNLEASH_PROXY_CLIENT_KEYS: titleprojectkey
  84. networks:
  85. - unleash
  86. configs:
  87. nginx-unleash-clients-20211130:
  88. external: true
  89. nginx-unleash-frontend-20211130:
  90. external: true
  91. networks:
  92. unleash:
  93. secrets:
  94. titleproject.space-20211130.crt:
  95. external: true
  96. titleproject.space-20211130.key:
  97. external: true