Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

docker-compose.yml 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. version: '3'
  2. volumes:
  3. redis-data:
  4. postgres-data:
  5. services:
  6. postgres:
  7. image: postgres:11.8
  8. container_name: postgres-scalelite
  9. restart: unless-stopped
  10. ports:
  11. - "127.0.0:54320:5432"
  12. volumes:
  13. - ./db:/var/lib/postgresql/data
  14. environment:
  15. - POSTGRES_USER=${POSTGRES_USER:-postgres}
  16. - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-password}
  17. redis:
  18. image: redis:5.0-alpine
  19. container_name: redis
  20. restart: on-failure
  21. ports:
  22. - 127.0.0.1:63790:6379
  23. volumes:
  24. - redis-data:/data
  25. certbot:
  26. image: certbot/certbot
  27. container_name: certbot
  28. volumes:
  29. - ./log/certbot:/var/log/letsencrypt
  30. - ./data/certbot/conf:/etc/letsencrypt
  31. - ./data/certbot/www:/var/www/certbot
  32. entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
  33. scalelite-nginx:
  34. image: ${SCALELITE_REPO:-blindsidenetwks}/scalelite:${SCALELITE_TAG:-v1}-nginx
  35. container_name: scalelite-nginx
  36. restart: unless-stopped
  37. ports:
  38. - "80:80"
  39. - "443:443"
  40. volumes:
  41. - ./log/nginx/:/var/log/nginx
  42. - ./data/certbot/conf:/etc/nginx/ssl
  43. - ./data/certbot/www:/var/www/certbot
  44. - ./data/nginx/scalelite:/etc/nginx/conf.d/scalelite
  45. - ./data/presentation:/var/bigbluebutton/playback/presentation
  46. - ${SCALELITE_RECORDING_DIR-/mnt/scalelite-recordings/var/bigbluebutton}/published:/var/bigbluebutton/published
  47. environment:
  48. - NGINX_SSL=${NGINX_SSL-true}
  49. - URL_HOST=${URL_HOST}
  50. depends_on:
  51. - scalelite-api
  52. scalelite-api:
  53. image: ${SCALELITE_REPO:-blindsidenetwks}/scalelite:${SCALELITE_TAG:-v1}-api
  54. container_name: scalelite-api
  55. restart: unless-stopped
  56. ports:
  57. - "3000:3000"
  58. volumes:
  59. - ./log/scalelite/:/app/log
  60. - ${SCALELITE_RECORDING_DIR-/mnt/scalelite-recordings/var/bigbluebutton}:/var/bigbluebutton
  61. environment:
  62. - SECRET_KEY_BASE=${SECRET_KEY_BASE}
  63. - LOADBALANCER_SECRET=${LOADBALANCER_SECRET}
  64. - REDIS_URL=${REDIS_URL:-redis://redis:6379}
  65. - DATABASE_URL=${DATABASE_URL:-postgres://postgres:password@postgres:5432/scalelite?pool=5}
  66. - URL_HOST=${URL_HOST}
  67. depends_on:
  68. - postgres
  69. - redis
  70. logging:
  71. driver: journald
  72. scalelite-poller:
  73. image: ${SCALELITE_REPO:-blindsidenetwks}/scalelite:${SCALELITE_TAG:-v1}-poller
  74. container_name: scalelite-poller
  75. restart: unless-stopped
  76. environment:
  77. - REDIS_URL=${REDIS_URL:-redis://redis:6379}
  78. - DATABASE_URL=${DATABASE_URL:-postgres://postgres:password@postgres:5432/scalelite?pool=5}
  79. depends_on:
  80. - postgres
  81. - redis
  82. - scalelite-api
  83. logging:
  84. driver: journald
  85. scalelite-recording-importer:
  86. image: ${SCALELITE_REPO:-blindsidenetwks}/scalelite:${SCALELITE_TAG:-v1}-recording-importer
  87. container_name: scalelite-recording-importer
  88. restart: unless-stopped
  89. environment:
  90. - REDIS_URL=${REDIS_URL:-redis://redis:6379}
  91. - DATABASE_URL=${DATABASE_URL:-postgres://postgres:password@postgres:5432/scalelite?pool=5}
  92. volumes:
  93. - ${SCALELITE_RECORDING_DIR-/mnt/scalelite-recordings/var/bigbluebutton}:/var/bigbluebutton
  94. - ${SCALELITE_RECORDING_DIR-/mnt/scalelite-recordings/var/bigbluebutton}/spool:/var/bigbluebutton/spool
  95. - ${SCALELITE_RECORDING_DIR-/mnt/scalelite-recordings/var/bigbluebutton}/published:/var/bigbluebutton/published
  96. depends_on:
  97. - postgres
  98. - redis
  99. - scalelite-api
  100. logging:
  101. driver: journald